Skip to content

Instantly share code, notes, and snippets.

@raarellano
Created March 16, 2015 17:03
Show Gist options
  • Save raarellano/55b8858e2f743ff60b60 to your computer and use it in GitHub Desktop.
Save raarellano/55b8858e2f743ff60b60 to your computer and use it in GitHub Desktop.
Update SSL Certificate - Heroku

Renewing an SSL Certificate

Renew through domain provider

The domain provider should offer a way to renew the certificate. Through DNSimple for example first click on the domain scroll to the SSL Certificates area and click the button to renew SSL Certificate. The domain provider will ask what email to send the validation email to. This are pre determined emails that usually the person who bought the certificate will setup. Choose a persons email (if not yours or the company’s) that you have contact with.

Validate Request

The SSL provider will send the email to the email you previously chose. This email usually takes a few minutes to deliver. If you are not the person it send the email to instruct the person to validate the request.

There will be clear instructions on the email of how to validate the request. Usually the SSL provider will provide a link with a “validation code”. Click the link to validate the request, copy the validation code, and and paste the validation code in the input provided by the SSL provider’s website.

SSL Site Seal (optional)

The SSL certificate provider might send you an email for your SSL site seal. This seal is for you to put on the website (optionally) to demonstrate your customers that the site is secure.

Certificates

The SSL provider will send you a link or attachments of the SSL certificates. Download the certificates to your computer.

There will be multiple certificates associated with the domain.

Concatenate Certificates

````$ cat www_myvistamarkets_com.crt COMODORSADomainValidationSecureServerCA.crt COMODORSAAddTrustCA.crt AddTrustExternalCARoot.crt > server.crt `````

Upload Certificates to Server

$ heroku certs:update ssl/server.crt ssl/server.key

Check Server

$ heroku certs

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