Skip to content
Coool edited this page Oct 24, 2021 · 3 revisions

How To Setup Let's Encrypt On dtc Domain

This page explains how to use the Let's Encrypt Script to set up ssl for your dtc.server.domain

At present this page is just a collection of Don's notes. Clean it up if you will :)

Get the scripts from Don's server at www.yournet.co.nz or out of the git (if they're in there, not currently sure I've updated them).

Step 1 - Back Up First

Make a copy of the files in /var/lib/dtc/etc/ssl

I normally just do a cp

cp /var/lib/dtc/etc/ssl /var/lib/dtc/etc/ssl-backup-22May2024

Now you can roll back if things go pear shape!

Step 2 - Get the dtc let's encrypt wrappers

# wget www.yournet.co.nz/getssl/dtc-getssl
# wget www.yournet.co.nz/getssl/dtc-getssl-update
# wget www.yournet.co.nz/getssl/getssl

Step 3 - Copy the three files you just got into the location we'll be using them from

 ./dtc-getssl -a dtc -d gplhost.co.uk -s dtc -c
  490  ./dtc-getssl -a dtc -d gplhost.co.uk -s dtc -c
  491  nano /home/dtc/.getssl/dtc.gplhost.co.uk/getssl.cfg
  492  ./dtc-getssl -a dtc -d gplhost.co.uk -s dtc
  493  ./dtc-getssl -a dtc -d gplhost.co.uk -s dtc
DOMAIN_CERT_LOCATION="/var/lib/dtc/etc/ssl/new.cert.cert"
DOMAIN_KEY_LOCATION="/var/lib/dtc/etc/ssl/new.cert.key"
CA_CERT_LOCATION="/var/lib/dtc/etc/ssl/new.cert.ca"

Source: GitLab

Clone this wiki locally