haproxytech / haproxy-lua-acme

Apache License 2.0
105 stars 15 forks source link

Automating renewal? #4

Open mdeneen opened 4 years ago

mdeneen commented 4 years ago

First of all, I really like this method of renewing certificates and the acme v2 client works great. When something goes wrong, though, it can be a bit difficult to handle and you end up with unexpected output in the pem file.

I ran the curl command, validated the entries, and life was good. Five minutes later I ran the same command and it issued new certificates. This is something that will surely get me in trouble if I placed it in a cron job.

Is there a recommended practice here?

anezirovic commented 4 years ago

Hello, thanks for reporting the usability issues, we probably want detect already issued certs, so it doesn't request for new cert every time you run the commands. For now, you'd need to check the cert file on disk yourself (with openssl command), and decide whether to request new cert.

github-tomster commented 3 years ago

any news on that?

ieugen commented 2 years ago

Looking at this in 2022. I wonder how hard would be to merge this functionality with hashicorp consul (via API) or hashicorp vault.