Support the new "ready" order status
This commit is contained in:
parent
d7bf9571d1
commit
936e2b98ee
@ -431,7 +431,7 @@ func (a *Acme) shouldAttemptValidation(ctx context.Context, cl client.Interface,
|
||||
}
|
||||
|
||||
switch order.Status {
|
||||
case acme.StatusPending, acme.StatusProcessing, acme.StatusValid:
|
||||
case acme.StatusPending, acme.StatusProcessing, acme.StatusValid, acme.StatusReady:
|
||||
// if the order has not failed, attempt authorization
|
||||
return 0, order, nil
|
||||
case acme.StatusRevoked, acme.StatusUnknown:
|
||||
|
||||
3
third_party/crypto/acme/types.go
vendored
3
third_party/crypto/acme/types.go
vendored
@ -20,6 +20,7 @@ const (
|
||||
StatusInvalid = "invalid"
|
||||
StatusRevoked = "revoked"
|
||||
StatusDeactivated = "deactivated"
|
||||
StatusReady = "ready"
|
||||
)
|
||||
|
||||
// CRLReasonCode identifies the reason for a certificate revocation.
|
||||
@ -215,7 +216,7 @@ type Order struct {
|
||||
URL string
|
||||
|
||||
// Status is the status of the order. It will be one of StatusPending,
|
||||
// StatusProcessing, StatusValid, and StatusInvalid.
|
||||
// StatusReady, StatusProcessing, StatusValid, and StatusInvalid.
|
||||
Status string
|
||||
|
||||
// Expires is the teimstamp after which the server will consider the order invalid.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user