Skip to content

Instantly share code, notes, and snippets.

@joncode
Last active December 21, 2015 11:38
Show Gist options
  • Select an option

  • Save joncode/6300104 to your computer and use it in GitHub Desktop.

Select an option

Save joncode/6300104 to your computer and use it in GitHub Desktop.
Creating a .CSR and making a domain SSL

updated in https://gist.github.com/joncode/46ca26a497ee7b9f477a

Create the csr in the terminal


####Step 1 $ openssl genrsa -des3 -out host.key 2048 you will be asked for a passphrase - very important to store this ####Step 2 $ openssl req -new -key host.key -out host.csr

####Step 3 You will be asked the following questions Here are example responses:

Country Name (2 letter code) [AU]:US

State or Province Name (full name)

Locality Name (eg, city) []:San Francisco

Organization Name (eg, company) [Internet Widgits Pty Ltd]:

Your Company Name

Organizational Unit Name (eg, section) []:*.yourdomain.com

Common Name (eg, YOUR name) []:*.yourdomain.com

Email Address []:[email protected]

Please enter the following ‘extra’ attributes to be sent with your certificate request

A challenge password []:

An optional company name []:

It is very important you don’t mistype anything here, as you can’t change this information without buying a new SSL certificate.  ‘Organizational Unit Name’ and ‘Common Name’ must be the hostname you are using on Heroku.  I highly recommend using the ‘secure.yourdomain.com’ host, as you will need to set a separate CNAME DNS record to route your secure traffic.
@joncode
Copy link
Author

joncode commented Aug 21, 2013

@joncode
Copy link
Author

joncode commented Apr 11, 2014

It is very important you don’t mistype anything here, as you can’t change this information without buying a new SSL certificate. ‘Organizational Unit Name’ and ‘Common Name’ must be the hostname you are using on Heroku. I highly recommend using the ‘secure.yourdomain.com’ host, as you will need to set a separate CNAME DNS record to route your secure traffic.

@joncode
Copy link
Author

joncode commented Apr 11, 2014

@joncode
Copy link
Author

joncode commented Apr 11, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment