Enabling SSL On Dokku

Updated 2026-09-23: nginx:import-ssl became certs:add in Dokku 0.4.0.

  1. It’s important that you have the newest version of Dokku: Dokku: Upgrading
  2. Zip your certificate and key: sudo tar czvf archive_name.tar.gz server.crt server.key
  3. Import using dokku certs:add appname < ~/archive_name.tar.gz Dokku: SSL configuration