Add Client.CreateCertFromOrder to finalize orders without relying on a Location header
Client.CreateOrderCert takes only the order's finalize URL. After finalizing, it reads the order URL from the response's Location header so it can poll the order. RFC 8555 does not require that header in finalize responses. Let's Encrypt sends it, but some CAs (such as Buypass) and the Pebble test server do not. With those servers, polling fails.
The new Client.CreateCertFromOrder method takes the *Order returned by AuthorizeOrder instead of a URL. It posts the CSR to Order.FinalizeURL and polls Order.URI, so it no longer needs the Location header. It returns an error if either field is empty. CreateOrderCert stays as it is, but its documentation will warn that it only works with CAs that send the header and will point users to the new method. autocert can switch to the new method.
order, err := client.AuthorizeOrder(ctx, acme.DomainIDs("example.com"))
// ... complete challenges ...
der, certURL, err := client.CreateCertFromOrder(ctx, order, csr, true)
- Proposal
- #77704 by cpu
- Status
- Implemented on Sep 18, 2026
- Impact
- low
- Area
- x/crypto/acme