x/crypto/acme/autocert: ToS prompt check for ToS-less ACME servers #64881
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go version go1.21.4 darwin/arm64
What operating system and processor architecture are you using (
go env
)?What did you do?
Use
(x/crypto/acme/autocert).Manager
without initializing thePrompt
field to request a certificate from an ACME provider (https://zerossl.com/ for example) that doesn't require the optionaltermsOfServiceAgreed
portion ofnewAccount
requests:What did you expect to see?
A valid certificate via the
autocert.Manager
. TheManager.Client.DirectoryURL
is explicitly being set so the check for nilPrompt
field does not seem necessary.What did you see instead?
An error message log:
http: TLS handshake error from <redacted>: acme/autocert: Manager.Prompt not set
The text was updated successfully, but these errors were encountered: