Skip to content

Instantly share code, notes, and snippets.

@ceremcem
Created March 15, 2016 15:39
Show Gist options
  • Save ceremcem/457388edd8c20cc42e72 to your computer and use it in GitHub Desktop.
Save ceremcem/457388edd8c20cc42e72 to your computer and use it in GitHub Desktop.
#!/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