Skip to content

Instantly share code, notes, and snippets.

@Epictetus
Forked from jurka/gist:1941107
Created April 18, 2013 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Epictetus/5411046 to your computer and use it in GitHub Desktop.
Save Epictetus/5411046 to your computer and use it in GitHub Desktop.
# 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