redbird icon indicating copy to clipboard operation
redbird copied to clipboard

Unable to renew Let's Encrypt certificates anymore

Open runekm opened this issue 4 years ago • 2 comments

Renewing Let's Encrypt certificates have started failing here with version 0.9.1 of Redbird. I also tried upgrading to Redbird version 0.10.0, but that didn't solve the problem. I also tried deleting the old certificates from the /certs folder, and then restarted Redbird. When I do that, the certificate folder is recreated with ./well-known/acme-challenge/test-[some random string]-0 inside it. But the process stops there, and none of the .pem files are created.

Any idea what is the problem?

runekm avatar Mar 20 '20 08:03 runekm

no idea, it should be working. Did you try with the simplest setup and go from there?

manast avatar Mar 20 '20 22:03 manast

My setup is quite simple. It looks like this:

var proxy = require('redbird')({
	port: 80,
	xfwd: true,
	bunyan: false,
	letsencrypt: {
		path: __dirname + "/certs",
		port: 9999
	},
	ssl: {
		http2: true,
		port: 443
	}
});

proxy.register("mydomain.com", "http://localhost:3000", {
	ssl: {
		letsencrypt: {
			email: "[email protected]",
			production: true
		}
	}
});

This has worked flawlessly for a couple of years, before I suddenly realized that the certificate wasn't renewed anymore. I spent some time trying to debug the problem. But I find it a bit hard to debug, so I didn't come far.

My temporary solution - which I might make permanent, if the problem persists - is to use a certificate created with Certbot instead. Certbot created the certificate without any problems.

runekm avatar Mar 20 '20 22:03 runekm