diff --git a/src/cert/acme.js b/src/cert/acme.js index 7fafbd2ed..c8faf8b2c 100644 --- a/src/cert/acme.js +++ b/src/cert/acme.js @@ -270,6 +270,7 @@ function signCertificate(accountKeyPem, domain, csrDer, callback) { sendSignedRequest(CA_ORIGIN + '/acme/new-cert', accountKeyPem, JSON.stringify(payload), function (error, result) { if (error) return callback(new AcmeError(AcmeError.EXTERNAL_ERROR, 'Network error when signing certificate: ' + error.message)); + // 429 means we reached the cert limit for this domain if (result.statusCode !== 201) return callback(new AcmeError(AcmeError.EXTERNAL_ERROR, util.format('Failed to sign certificate. Expecting 201, got %s %s', result.statusCode, result.text))); var certUrl = result.headers.location;