Skip to content

Instantly share code, notes, and snippets.

@vinioliveira
Created March 31, 2011 18:57
Show Gist options
  • Save vinioliveira/896988 to your computer and use it in GitHub Desktop.
Save vinioliveira/896988 to your computer and use it in GitHub Desktop.
Generating key and cert openssl
# Generating the private key
openssl genrsa -des3 -out server.key 1024
# Generating the certificate single request
openssl req -new -key server.key -out server.csr
# Removing password from private key
cp server.key server.key.org
openssl rsa -in server.key.org -out server.key
# Generating the certificate
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment