Do you have a Phoenix application deployed using Dokku? Then, you can switch to using HTTPS in less than 5 minutes.
This is more of a Dokku post because this same process will probably work with any other application deployed with it. I've encrypted two Phoenix apps and this ghost blog using the same process.
Requirements: Dokku 0.4 or above
SSH into your VM and install the dokku-letsencrypt plugin:
sudo dokku plugin:install https://github.com/dokku/dokku-letsencrypt.git
Set up LetsEncrypt with your email:
dokku config:set --no-restart myapp DOKKU_LETSENCRYPT_EMAILemail@example.com
Set Up SSL:
dokku letsencrypt myapp
And thats it! Your container will restart and now your using HTTPS, how easy was that!