By Sthapit over 1 year ago

Here's how to add a SSL certificate to your site in 5 easy steps:

1. Install, or make sure openssl is installed

brew install openssl

2. Create a Private Key

openssl genrsa -des3 -out site.orig.key 2048
openssl rsa -in site.orig.key -out site.key

3. Generate CSR (Certificate Signing Request)

openssl req -new -key site.key -out site.csr

4. Get SSL key

You will need the CSR from the step 3

5. Concatenate certificates

The SSL issuing company from step 4 will likely give you multiple certificates, in which case you can concatenate them into one certificate

cat www_harilo_com.crt PositiveSSLCA.crt UTNAddTrustServerCA.crt AddTrustExternalCARoot.crt > www_harilo_com_bundle.pem

Upload to your server and voila - your site has a SSL certificate so now traffic back and forth is encrypted and safe from packet sniffers and other prying eyes. If you are worried about security on Harilo (you shouldn't since our site only lists your orders and all payments and credit card processing is done on 3rd party sites such as Amazon, Google, PayPal, Alertpay, NIBL etc.) feel free to use our https version at https://www.harilo.com/signin

p.s. if you're on heroku the last step can be done by

heroku ssl:add ../ssl-cert/www_harilo_com_bundle.pem ../ssl-cert/site.key

if you already have a certificate replace "add" with "update"

Comments powered by Disqus