x/crypto/acme: confusing error when ACME CA does not implement pre-authorization flow #39380
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes (latest version in use)
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Using
golang.org/x/crypto/acme
(golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37
ingo.mod
), I register an account with Lets Encrypt's staging v2 API and then call Client.Authorize(). This fails because Discover() returns a Directory withAuthzURL
set to the empty string indicating the pre-authorization flow is not supported by the CA.What did you expect to see?
Some form of
The CA does not implement pre-authorization flow
error message.What did you see instead?
An error returned with text
Post "": unsupported protocol scheme ""
The text was updated successfully, but these errors were encountered: