Last active
April 7, 2017 11:26
-
-
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
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
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