From 936e2b98eeb815da61ff2c3268517bac0cb97f37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Cruz?= Date: Tue, 3 Jul 2018 15:31:14 +0100 Subject: [PATCH] Support the new "ready" order status --- pkg/issuer/acme/prepare.go | 2 +- third_party/crypto/acme/types.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/issuer/acme/prepare.go b/pkg/issuer/acme/prepare.go index 690963020..747fac4c1 100644 --- a/pkg/issuer/acme/prepare.go +++ b/pkg/issuer/acme/prepare.go @@ -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: diff --git a/third_party/crypto/acme/types.go b/third_party/crypto/acme/types.go index 483ccb2c8..0810e4cf2 100644 --- a/third_party/crypto/acme/types.go +++ b/third_party/crypto/acme/types.go @@ -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.