-
-
Save Epictetus/5411046 to your computer and use it in GitHub Desktop.
This file contains 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
# Generating 2048 key file with RSA | |
openssl genrsa 2048 > host.key | |
# Generating certificate for 10 years with our new key | |
# couple of question will be promted | |
# when you will be asked for Common Name, you need to specify *.domain.com | |
openssl req -new -x509 -nodes -sha1 -days 3650 -key host.key > host.cert | |
# getting info for our certificate | |
openssl x509 -noout -fingerprint -text < host.cert > host.info | |
# renaming key | |
cat host.cert host.key > host.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment