Skip to content

Instantly share code, notes, and snippets.

@saetia
Last active August 29, 2015 13:58
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 saetia/9987966 to your computer and use it in GitHub Desktop.
Save saetia/9987966 to your computer and use it in GitHub Desktop.
Create SSL

on the server

sudo openssl genrsa -des3 -out server.key 2048
openssl req -new -key server.key -out server.csr

Country Name (2 letter code) [AU]:US
State or Province Name (full name) [Some-State]:Wisconsin
Locality Name (eg, city) []:Milwaukee
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Sockcess Customs
Organizational Unit Name (eg, section) []:Web
Common Name (e.g. server FQDN or YOUR name) []:sockcesscustoms.com
Email Address []:info@sockcesscustoms.com

The fields email address, optional company name and challenge password can be left blank for a webserver certificate.

remove the password

sudo cp server.key server.key.org
sudo openssl rsa -in server.key.org -out server.key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment