Installing a SSLMate SSL Certificate on WebFaction
To me SSL certificates have always been relegated to the realm of ecommerce sites and big tech companies. I wanted to know a site was HTTPS before logging in, but I never really cared how it worked. Recently I read @bcrypt’s post tls everything, in which I learned that HTTPS is not expensive nor is it hard to set up.
This note is to document my process of getting a SSL certificate from SSLMate set up on WebFaction.
- Since we will make SSLMate from source, we will need cpan to install dependencies. Follow the instructions in the WebFaction documentation to setup cpan for your user account.
- Follow the instructions for SSLMate installation. Choose Other as your operating system to get the
make
instructions. - Install SSLMate dependencies with cpan:
cpan URI Term::ReadKey JSON::PP
- Grab the latest package and uncompress:
wget https://packages.sslmate.com/other/sslmate-latest.tar.gz; tar xzvf sslmate-latest.tar.gz
cd
into the uncompressed sslmate directory.- Specify a path to your home directory when running make:
make install PREFIX=$HOME/sslmate
- Add an alias to the installation in your .bash_profile, .bashrc, or .aliases:
alias sslmate="$HOME/sslmate/bin/sslmate”
- Now proceed to purchase a certificate for your domain.
- After purchasing the certificate, follow the instructions for setting up a https site on WebFaction.
Notes:
$HOME/.sslmate
is the file SSLMate uses to store its config (for example, when you runsslmate link
).- It took about 30 minutes for the WebFaction staff to enable the certificate after opening the support ticket.