Tuesday, August 30, 2016

Using LetsEncrypt certbot to add certificate to Dokku




  1. Get a certificate
Download certbot: $ wget https://dl.eff.org/certbot-auto
Allow user to execute certbot: $ chmod a+x ./certbot-auto
Download libs: $./certbot-auto
Get certificate: $ ./certbot-auto certonly --standalone -d [domain-name]
Ex: $ ./certbot-auto certonly --standalone -d unony.org -d www.unony.org  


2. Create the file necessary for dokku
Navigate to certificates: $ cd /etc/letsencrypt/live/[domain-name]
Create key: $ cp privkey.pem server.key
Create certificate: $ cp fullchain.pem server.crt
Add certificate to app: $ dokku certs:add [app-name] server.crt server.key



0 comments:

Post a Comment