-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AmazonLinux 2023 & Nginx support #124
Comments
I ran into this myself, and after talking to support was informed that it's simply not supported right yet unless you downgrade openssl-pkcs11 to v0.4.11. I achieved it without a downgrade by adding the following dirty hack to openssl.cnf:
And adding Otherwise, you're waiting until January 2024. |
Interesting, i did also got the "unsupported" part but not the downgrade one |
I'm also running into the same issue. AmazonLinux2023: Also, in my case, the same problem occurs with AL2. |
I could have started the nginx on the AL2 with add the folling in my nginx.conf.
However, AL2023 was still bad. |
Hi,
Sorry if it's not the place for this, i also have an aws case opened but i figured i tried.
I am testing acm enclave with AmazonLinux 2023 and nginx don't seem to be compatible any more ?
The same configuration works on AL2 but with 2023 nginx fail to start with:
nginx: [emerg] cannot load certificate key "engine:pkcs11:pkcs11:model=p11ne-token;manufacturer=Amazon;token=main-acm-token;id=%01;object=acm-key;type=private?pin-value=xxxx": ENGINE_load_private_key() failed (SSL: error:13000075:engine routines::not initialised)
I just tried with apache/httpd and the sample setup work somehow.
I tried some diagnostics from #53, it seem p11tool do see the certificate:
Also using openssl to create a certificate request do work, using
openssl req -engine pkcs11 -new -key "pkcs11:model=p11ne-token;manufacturer=Amazon;token=httpd-acm-token;id=%01;object=acm-key;type=private?pin-value=xxxxxx" -keyform engine -out /tmp/req.csr
Here is the used
/etc/nitro_enclaves/acm.yaml
:The text was updated successfully, but these errors were encountered: