Skip to content

Instantly share code, notes, and snippets.

@manpages
Created May 18, 2013 00:31
Show Gist options
  • Save manpages/5602769 to your computer and use it in GitHub Desktop.
Save manpages/5602769 to your computer and use it in GitHub Desktop.
Generate self-signed certificate.
echo "Everytime it asks for passphrase type in the same passphrase. Enjoy."
openssl genrsa -des3 -out server.key 1024
openssl req -new -key server.key -out server.csr;cp server.key server.key.org
openssl rsa -in server.key.org -out server.key
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
echo "Done! server.crt -- certificate; server.key -- key. Script by RumuPuRE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment