Skip to content

Instantly share code, notes, and snippets.

@lcmen
Last active April 7, 2017 11:26
Show Gist options
  • Save lcmen/12fd2f1c37d99842b2e63404343347c5 to your computer and use it in GitHub Desktop.
Save lcmen/12fd2f1c37d99842b2e63404343347c5 to your computer and use it in GitHub Desktop.
[Generate CSR for SSL] Shows how to generate CSR for SSL certificate. #tags: shell
openssl req -new -newkey rsa:2048 -nodes -keyout example.key -out example.csr
# For common name enter full domain, for wildcard use *.example.com format
# If you received bundle separately from root then you need to combine them:
cat domain.crt domain.sa-bundle >> domain-bundle.crt
# Verify cert
openssl s_client -connect foo.example.com:443 < /dev/null | openssl x509 -text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment