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.
- 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
- 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
cdinto 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:
- Now proceed to purchase a certificate for your domain.
- After purchasing the certificate, follow the instructions for setting up a https site on WebFaction.
$HOME/.sslmateis the file SSLMate uses to store its config (for example, when you run
- It took about 30 minutes for the WebFaction staff to enable the certificate after opening the support ticket.