mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
Keep getting `Must agree to subscriber agreement before any further actions`
#326
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gheja on GitHub (Apr 10, 2018).
I keep getting
Must agree to subscriber agreement before any further actionswhen trying to get a wildcard certificate. I have started with a clean install, only thing I changed is the staging server in the config. Maybe just I am doing something wrong.The hook.sh is my own hook script as neither the name server nor the web server is located on this machine.
(Replaced my domain with
example.com. And I think in hindsight that using this private key is not recommended.)@gheja commented on GitHub (Apr 10, 2018):
Hmm, when I am not using
--privkeythe script just works fine.So it looks like when using a private key from file instead of account key the ToS acceptance is not working for some reason.
@lukas2511 commented on GitHub (Apr 13, 2018):
The privkey option was designed to allow use of an existing pre-registered key, there is no registration logic if a custom key is defined.
Dehydrated fails when it tries to receive additional information for the registered account for that key (well, because there is no account registered with that key).
Not really a dehydrated bug, but the error message may be a bit confusing. This actually seems more like a boulder bug. I'll investigate the error message a bit more and may open an issue with boulder.
@lukas2511 commented on GitHub (Apr 13, 2018):
Well, okay, two things:
I now allowed the register command to also work with keys specified that way, so now registering custom keys should work, but what you are doing using
--privkey example.com.keyis wrong, that shouldn't be your domain key, that should be an account key and usually wouldn't be needed to specify as dehydrated handles account-management itself.Any error messages about ToS not being accepted actually seem to be a boulder issue because boulder doesn't implement the
only-return-existingflag for account registration/information. I won't change anything about this in dehydrated as it actually follows the protocol specification and the CA should return a different error in this case.@cpu commented on GitHub (Apr 13, 2018):
Boulder does implement
onlyReturnExistingfor ACME v2 (It's not something that was initially specified in ACME "v1").This is the correct error message for an ACMEv1 request that is using an account that has been created, but that has not posted the
agreementfield.@lukas2511 commented on GitHub (Apr 13, 2018):
@cpu
aff1d64605/docs/acme-divergences.md (section-731)wasn't "onlyReturnExisting" acme-v1 and "only-return-existing" acme-v2? Or did I swap the two protocol versions around in my code? Or was it changed between drafts? I'm not entirely sure, I'm always confused which document is for which API version 🙈 Is there a link where I can always get the most recent version of v1 / v2 specs?@cpu commented on GitHub (Apr 13, 2018):
@lukas2511 That divergences doc needs to be clarified - it only applies to the V1 endpoint and was written at the time when we didn't have an ACME v2 implementation. The case was changed from
only-return-existingtoonlyReturnExistingin a later draft and that page needs to be caught up with its references. ACME v2 does implement this feature. ACME v2 has no divergences page (there's only the two mentioned at the end of the announcement).It's all a bit of a mess with regards to legacy ACME. There's no specific "v1" draft because the implementation and the point at which drafts were cut were not in lockstep. The latest V2 specs are always here: https://datatracker.ietf.org/doc/draft-ietf-acme-acme/
@lukas2511 commented on GitHub (Apr 13, 2018):
@cpu ok thanks, I uhm "fixed" that in
ba5928776fnow, seems to be working fine.