From 7f2b3eb83571bf6dd18da58f58a4b65e5d43b24b Mon Sep 17 00:00:00 2001 From: "girish@cloudron.io" Date: Mon, 14 Mar 2016 22:22:55 -0700 Subject: [PATCH] acme: disable renewal via url fetch for now this does not seem to work. From https://github.com/ericchiang/letsencrypt/commit/cf85854177b22540ca1aeba770c2b86534c6c5ef: // RenewCertificate attempts to renew an existing certificate. // Let's Encrypt may return the same certificate. You should load your // current x509.Certificate and use the Equal method to compare to the "new" // certificate. If it's identical, you'll need to run NewCertificate and/or // start a new certificate flow. --- src/cert/acme.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cert/acme.js b/src/cert/acme.js index d9403b15e..3a265cfee 100644 --- a/src/cert/acme.js +++ b/src/cert/acme.js @@ -415,7 +415,9 @@ Acme.prototype.getCertificate = function (domain, callback) { assert.strictEqual(typeof callback, 'function'); var outdir = paths.APP_CERTS_DIR; - var certUrl = safe.fs.readFileSync(path.join(outdir, domain + '.url'), 'utf8'); + // ignore renewal url for now since LE does not seem to support it + // https://github.com/ericchiang/letsencrypt/blob/1edc428eec60a418dcc4045a2350fe9a9ad74b71/certificate.go#L52 + var certUrl = null; // safe.fs.readFileSync(path.join(outdir, domain + '.url'), 'utf8'); var certificateGetter; if (certUrl) {