Skip to content

Instantly share code, notes, and snippets.

@elmariofredo
Created March 4, 2014 10:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save elmariofredo/9344258 to your computer and use it in GitHub Desktop.
Save elmariofredo/9344258 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