Skip to main content

CentOS, getssl, CloudFlare DNS

I am not going to go through a CentOS install (maybe later).  However, below you will find my setup steps to get SSL functional using getssl (a script based on LetsEncrypt) and CloudFlare DNS (a DNS provider that offers a free service, that is quite awesome for being free).   There is a lot of documentation out there, but finding the correct answer was a huge challenge (unless you know where to look).  Here we go...

Install CentOS.  Moving on.

I run my setup out of the /opt directory.  Inside the /opt I create a ssl folder which will be considered the "working" directory.  The GIT repo for getssl has a lot of scripts but I only needed a couple.  The main getssl script and both the add and remove DNS scripts.

SITE: https://github.com/srvrco/getssl

Go to /opt, create the working directory, get the scripts and make them execute...

#!/bin/bash

cd /opt

mkdir ssl
mkdir ssl/scripts

# getssl main getssl script
wget https://raw.githubusercontent.com/srvrco/getssl/master/getssl
chmod +x getssl

# get the dns scripts needed to add and remove txt entries to your domain (for letsencrypt authorization)
wget https://raw.githubusercontent.com/srvrco/getssl/master/dns_scripts/dns_add_cloudflare -P /opt/ssl/scripts
wget https://raw.githubusercontent.com/srvrco/getssl/master/dns_scripts/dns_del_cloudflare -P /opt/ssl/scripts
chmod +x /opt/ssl/scripts/*

If this is a fresh install of linux, then the script will need a way to lookup DNS entries.  I use "dig" from the Bind Utils.  Install that.

yum install bind-utils

asd