Skip to content

Instantly share code, notes, and snippets.

@garlandkr
Forked from elmariofredo/Generate ssl key
Created April 21, 2014 22:38
Show Gist options
  • Save garlandkr/11158947 to your computer and use it in GitHub Desktop.
Save garlandkr/11158947 to your computer and use it in GitHub Desktop.
openssl genrsa -des3 -out trexglobal.com.key 4096
openssl req -new -key trexglobal.com.key -out trexglobal.com.csr
cp -v trexglobal.com.{key,original}
openssl rsa -in trexglobal.com.original -out trexglobal.com.key
rm -v trexglobal.com.original
openssl x509 -req -days 9999 -in trexglobal.com.csr -signkey trexglobal.com.key -out trexglobal.com.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment