Created
September 24, 2022 14:10
-
-
Save AysadKozanoglu/491b2bd77a3f4c2691fdd490f636f564 to your computer and use it in GitHub Desktop.
acme.sh script handling for standalone mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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