Created
June 2, 2017 12:51
-
-
Save ningthoujam-lokhendro/c24d59e9802a050cf54208c41d6b0c81 to your computer and use it in GitHub Desktop.
Generate Certificates and self signed for dev usage
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
# Generate Private Key | |
openssl genrsa 1024 > star.example.com.key | |
# Generate Certificate Signing Request | |
openssl req -new -key ./star.example.com.key >./star.example.com.csr | |
# Self Signed the Certificate | |
openssl x509 -in star.example.com.csr -out star.example.com.crt -req -signkey star.example.com.key -days 365 | |
# Convert to PEM. | |
cat star.example.com.crt star.example.com.key > server.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment