alxwolf / ubios-cert

Manage SSL / TLS certificates with acme.sh (Let's Encrypt, ZeroSSL) for Ubiquiti UbiOS firmwares
MIT License
170 stars 20 forks source link

Email Notification #54

Closed unifinoob closed 1 year ago

unifinoob commented 1 year ago

Hello, just installed this couple days ago and was wondering if there’s an option to add email notification when the certificate is renewed?

alxwolf commented 1 year ago

Yes, that is totally possibly by using whatever floats your boat from ´acme.sh´'s notify function.

you have a fully working acme.sh installation. To make it easily accessible, you could ssh into your UniFi console and issue:

ACMESH_ROOT="/data/ubios-cert/acme.sh"
ACME_HOME="--config-home ${ACMESH_ROOT} --cert-home ${ACMESH_ROOT} --home ${ACMESH_ROOT}"
alias acme.sh="${ACMESH_ROOT}/acme.sh ${ACMESH_CMD_PARAMS} ${ACME_HOME}"

With that, you can use something like acme.sh --set-notify --notify-hook <whatever hook you like> from your command prompt. or start creating server certificates for other web servers you run...

I just put this in a wiki entry.

unifinoob commented 1 year ago

Thank you!