x/crypto/acme: allow OrderFinalization requests to respond with StatusCreated #38626
Labels
FrozenDueToAge
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?
I believe so.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I am using the acme client to perform an RFC8555 compliant workflow. The RFC specifies that NewAccount and OrderFinalization requests to respond with StatusCreated. The rfc8555.go file only accepts StatusOK responses.
A quick and easy solution would be adding StatusCreated to the following line in CreateOrderCert:
Line 295: res, err := c.post(ctx, nil, url, req, wantStatus(http.StatusOK, http.StatusCreated))
The test for this function then needs to be updated so that the /pleaseissue handler is broken up into two handlers. One for the order finalization, and one for the order polling since these two requests now expect different server responses.
Something like:
The text was updated successfully, but these errors were encountered: