Open pnunn opened 8 months ago
Please upgrade to the latest code and try again first. Maybe it's already fixed. acme.sh --upgrade
If it's still not working, please provide the log with --debug 2
, otherwise, nobody can help you.
Update done and debug 2 code added to the above.
@pnunn It looks like you didn't have the rights to write the certificate. This up to date tutorial https://github.com/haproxy/wiki/wiki/Letsencrypt-integration-with-HAProxy-and-acme.sh has the steps to achieve this:
root@ubuntu:~# mkdir /etc/haproxy/certs
root@ubuntu:~# chown haproxy:haproxy /etc/haproxy/certs
root@ubuntu:~# chmod 770 /etc/haproxy/certs
But don't forget to add the acme
user to the haproxy group.
Also be careful if you upgraded, this was not part of the acme.sh repository and only in a PR ( https://github.com/acmesh-official/acme.sh/pull/4581 ) which was merged in dev
yesterday. This is still not in the master branch and still require to download the deploy script manually.
Steps to reproduce
Following the tutorial at https://www.haproxy.com/blog/haproxy-and-let-s-encrypt
Get to the deploy step and I get a permissions error when trying to move the new certificate into place.
Debug log
debug 2 code after update