Skip to content

Direct access to ´acme.sh´

Alexander Wolf edited this page Apr 10, 2023 · 1 revision

Now we have a bare metal ´acme.sh´ install on a device running 24/7. Why not use it for more than putting out single cert for that machine?

Simply done:

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 issuing, deploying and renewing server certificates for other web servers you run...