acme.sh icon indicating copy to clipboard operation
acme.sh copied to clipboard

Add deploy hook for ZNC

Open Xinayder opened this issue 7 years ago • 9 comments

I've added a deploy hook to automatically deploy the Let's Encrypt certificate for ZNC. You need to run acme.sh as the same user as ZNC, because otherwise the permissions get borked and ZNC breaks.

The znc.pem file is generated with the certificate key, domain certificate and CA certificate. More info: https://wiki.znc.in/Signed_SSL_certificate

The script, by default, uses /var/lib/znc/.znc as the ZNC home directory and znc as the ZNC user (Arch Linux defaults). The user can override these by setting ZNC_USER and ZNC_DIR variables, which will be saved to account.conf.

Xinayder avatar Aug 06 '17 18:08 Xinayder

I've updated the script because _stat checks for user and group ownership. Now, the script will check if the specified ownership string user:group matches the current user, and if the current user is part of the owner group. I've also added checks for cat, _stat and pretty much any shell command I've used.

Xinayder avatar Aug 08 '17 00:08 Xinayder

please fix the format errors first https://travis-ci.org/Neilpang/acme.sh/jobs/262050938

Neilpang avatar Aug 10 '17 13:08 Neilpang

Should be good to go now, just waiting for Travis to finish the OS X build that got stuck.

Xinayder avatar Aug 10 '17 22:08 Xinayder

I think this is ready to be merged. Anything else you want me to change?

Xinayder avatar Aug 23 '17 00:08 Xinayder

https://travis-ci.org/Neilpang/acme.sh/jobs/263286268

Neilpang avatar Aug 23 '17 01:08 Neilpang

Formatting errors fixed.

Xinayder avatar Aug 25 '17 22:08 Xinayder

I'll be rebasing this in the next days to the latest commit in dev so it can be merged.

Xinayder avatar Sep 28 '17 03:09 Xinayder

Rebased.

Xinayder avatar Oct 13 '17 17:10 Xinayder

Is this likely to be merged?

ldir-EDB0 avatar Sep 12 '18 08:09 ldir-EDB0