We're going to follow Let's Encrypt official guide: https://certbot.eff.org/instructions?ws=nginx&os=debiantesting and choose the apropiate options. We've pre-selected the default Dradis Pro options for you.
This guide explains how to configure let's encrypt in a Dradis Pro instance based on Debian 10. If your instance uses another OS, some commands may change.
In short, what this guide is trying to do is summarized in this script:
#!/bin/bash # Request server droplet name as $server echo "What is the server address? E.g. test.dradisframework.net" read server # Certification sudo sed -i -e "s/# server_name dradispro.local;/server_name $server;/g" /etc/nginx/sites-enabled/dradispro sudo apt-get install -y certbot python3-certbot-nginx sudo certbot certonly --nginx echo $server cd /etc/ssl/dradispro.local/ sudo rm bundle.dradispro.local.crt sudo ln -s /etc/letsencrypt/live/$server/fullchain.pem bundle.dradispro.local.crt sudo rm dradispro.local.key sudo ln -s /etc/letsencrypt/live/$server/privkey.pem dradispro.local.key sudo service nginx reload
Feel free to scp this script to your instance an execute it, or try the step by step manual instructions below:
SSH into the box as dradispro
server_name
directive of /etc/nginx/sites-enabled/dradispro
to your desired FQDN. From:
# server_name dradispro.local;To:
server_name custom.domain.net
(use your own custom domain)
sudo apt-get install certbot python3-certbot-nginx
sudo certbot certonly --nginx
If this step fails (e.g. you get a message like nginx restart failed:
), check your
/etc/nginx/nginx.conf
file.
When asked enter the number that corresponds to the FQDN you entered before, probably 1
as we are using a single server name.
Note down the location of the certificate bundle and key.
cd /etc/ssl/dradispro.local/ sudo rm bundle.dradispro.local.crt sudo ln -s /etc/letsencrypt/live/[your custom domain]/fullchain.pem bundle.dradispro.local.crt sudo rm dradispro.local.key sudo ln -s /etc/letsencrypt/live/[your custom domain]/privkey.pem dradispro.local.key
sudo service nginx reload
8
to test automatic renewal and check the certificate works.
Next help article: Increase the number of puma threads →
Your email is kept private. We don't do the spam thing.