Home/Article
Esadax JournalFAQ

How to Install an SSL Certificate on Heroku

To install an SSL certificate on Heroku, follow these organized steps: Using the Heroku Dashboard: 1. Access the App: Navigate to your app's dashboard in Heroku. 2. Navigate to SSL

To install an SSL certificate on Heroku, follow these organized steps:

Using the Heroku Dashboard:

  1. Access the App: Navigate to your app's dashboard in Heroku.
  2. Navigate to SSL Settings: Go to the "SSL Certificates" section within the app's menu.
  3. Upload Certificate:
    • Click "Add Certificate."
    • Upload server.crt and server.key files.
  4. Follow Instructions: Complete any additional steps required, such as domain verification if using a third-party CA.

Using the Heroku CLI:

  1. Verify CLI Version: Ensure your Heroku CLI is updated with heroku update.
  2. List Apps: Use heroku apps:list to identify your app name.
  3. Add Certificates:
    • Run heroku certs:add server.crt server.key --app yourappname.
  4. Verify Installation: Check with heroku certs:info to confirm the SSL configuration.

Managing and Updating Certificates:

  • Removal: Go to SSL settings, click the gear icon next to the certificate, then select "Remove" and confirm by entering the app name.
  • Update: Similar to adding, navigate to SSL settings, click the gear, and choose "Update Certificate," following the same steps as addition.

Additional Considerations:

  • Security: Handle private keys securely; avoid accidental removal.
  • Renewal: Plan ahead to update certificates before expiration, especially for self-signed or third-party issued ones.
  • No Downtime: Heroku typically handles updates without service interruption.
Subscribe