-
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
ZeroSSL integration failing to create account #70
Comments
This is the invocation of the The kong plugin invokes this acme library as follows:
|
Hi @johnfishbein thanks for the detailed report. It does seem the logic to handle predefined eab crendential is wrong. You can let the library to create it for you at present, you should still be able to see the certs in zerossl dashboars as long as you use the corresponding email to login. The |
@fffonion Thanks for your response - I will try swapping the |
Closing as inactivity, please reopen if needed : ) |
Ah sorry, forgot to close the loop here - your PR #71 fixed the issue for me since I am now able to use my predefined eab credentials. Thanks for your help! |
Hi,
I am trying to invoke the lua-resty-acme library from
kong
using the acme plugin . I have been successfully using this workflow with LetsEncrypt for a long time now. Recently, I have started to hit rate limit concerns from letsencrypt and have been investigating switching over to a paid CA. My overall goal is to use this samekong
+lua-resty-acme
workflow with ZeroSSL. Howver, it is not working.Originally I was specifying EAB credentials into client initialization
acme.new
. This was getting the error:I believe this is because I have provided the eab credentials in the config, this handler is unable to be loaded due to this condition here. Because the eab_handler is not set here, later in the execution flow, there is a condition that explicitly requires the eab handler here. This causes the error log that I am seeing.
Overall - I think this is because I am specifying EAB credentials and then also invoking the
acme_client:new_account()
. From the ZeroSSL discovery athttps://acme.zerossl.com/v2/DV90
, clearly"externalAccountRequired" = true
and so I orignally thought that I needed to provied external EAB credentials. This was probably my initial misundersanding of the role of the EAB credentials.In any case, I tried removed the
eab_kid
andeab_hmac_key
from the acme client instantiation and instead let the account (and credentials) be created by the handler in the library.From the logs, the zerossl eab handler is successfully creating eab credentials (I assume that these credentials are related to my account through the account_email though I am not sure.). The error occurs in the first request to the acme server that needs to use the credentials to create an account. Following the logs, the library injects some JWS stuff into the request which includes the credentials generated in the previous step.
Parsing the logs, you can see that the request is going to
https://acme.zerossl.com/v2/DV90/newAccount
but the information in the protected section of the payload has that the url ishttps:\/\/acme.zerossl.com\/v2\/DV90\/newAccount
.Is this an error with the jws encoding that is happening? Am I misunderstanding the role of the EAB credentials? What is the recommended approach to generated certificates throug ZeroSSL?
Thank you so much for your help!
The text was updated successfully, but these errors were encountered: