Skip to content

Instantly share code, notes, and snippets.

@AysadKozanoglu
Created September 24, 2022 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AysadKozanoglu/491b2bd77a3f4c2691fdd490f636f564 to your computer and use it in GitHub Desktop.
Save AysadKozanoglu/491b2bd77a3f4c2691fdd490f636f564 to your computer and use it in GitHub Desktop.
acme.sh script handling for standalone mode
in this script webserver is nginx, so pre handling is only for nginx but you can change it to your needs and webserver
```
ACMEDOMAIN=domainname.tld
/root/.acme.sh/acme.sh --standalone --issue -d www.${ACMEDOMAIN} -d ${ACMEDOMAIN} \
--cert-file /etc/ssl/${ACMEDOMAIN}-cert.pem \
--key-file /etc/ssl/${ACMEDOMAIN}-priv.pem \
--fullchain-file /etc/ssl/${ACMEDOMAIN}-fullchain.pem \
--pre-hook "nginx -s stop; killall nginx" \
--post-hook "nginx"
```
check the certificate holder (alternativ to letsencrpyt):
[https://zerossl.com]
check to the cli tool for ssl issue handling:
[https://acme.sh]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment