-
Notifications
You must be signed in to change notification settings - Fork 38
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
failed to set_subject_alt: X509_REQ_add_extensions #125
Comments
could you share your config? You can replace sensitive fields with |
|
Hi @fffonion, I also encountered the same error. 2024/11/27 18:31:00 [error] 7#7: 4 [acme] autossl.lua:228: error updating cert for xxx.xxx.co err: failed to create csr: failed to set_subject_alt: X509_REQ_add_extensions: code: 0, context: ssl_certificate_by_lua, client: xxx.xxx.xxx.xxx, server: 0.0.0.0:443 |
Hi @HenkVanMaanen, I switched to openssl 3.0.15 and it fixed the issue. |
Thanks for debugging this! In the mean time we had to fix this because we had the problem in production so had to act quick. We moved to using Caddy in combination with on demand TLS and an ask endpoint that validates the requested domain: https://caddyserver.com/docs/caddyfile/options#on-demand-tls |
This could be a bug in older version of openssl or change of API. @ctuIhu What version of openssl were you using prior |
Hi @fffonion, I think there is a bug on older version of openssl. I was using 1.1.1l prior to 3.0.15. |
We get this error when lua-resty-acme tries to request a new certificate:
autossl.lua:659: failed to create rsa certificate for domain **-**********-***-****.******.dev: failed to create csr: failed to set_subject_alt: X509_REQ_add_extensions: code: 0, context: ssl_certificate_by_lua*
Any idea how we can fix this?
Versions:
The text was updated successfully, but these errors were encountered: