Created
March 15, 2016 15:39
-
-
Save ceremcem/457388edd8c20cc42e72 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
# HOWTO: | |
# Create csr, buy certificate, get .crt from somewhere, save it as server.crt | |
# run this script | |
cat server.crt \ | |
COMODORSADomainValidationSecureServerCA.crt \ | |
COMODORSAAddTrustCA.crt \ | |
AddTrustExternalCARoot.crt > server.chained.crt | |
r=$(/etc/init.d/nginx reload | grep failed) | |
if [[ $r != "" ]]; then | |
tail /var/log/nginx/error.log | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment