What's the simplest way to issue and apply LetsEncrypt SSL certificates from my WebFaction server?
asked 23 May '16, 07:39
There are many ways to go about utilizing LetsEncrypt. Here's one designed for WebFaction specifically and built in ruby.
That said, I personally prefer a minimalist approach - one that works identically for all application types and relies on nothing but bash, netcat, and OpenSSL. So here I'll describe how I personally use LetsEncrypt, but feel free to use whatever you find most convenient.
Lastly, note that you're going to need to take your site offline for a short period of time (about 10 minutes) during this procedure, so you'll want to plan accordingly.
To begin, create a new application of type "Custom Application (Listening on Port)". I called mine "
Note the port assigned to this application -- In this guide, I'll use port "
Next, ensure that you have both HTTP and HTTPS website records for your website in your Websites list. If you only have an HTTP site, then make a copy of it that is identical except for using HTTPS instead. At this point you should have two website records for your domain- one HTTP, and one HTTPS.
For the sake of this example, I'll name these website records "
Now you're ready to issue the certificates. Return to the Control Panel Websites list and edit your HTTP and HTTPS websites ("
Now, from the command line, generate a test (staging) certificate as follows:
That was just a test certificate -- you can't actually use it. But now that you know that certificate can be issued without errors, you're ready to issue it for real. Delete the directory containing the test certificate and proceed to issue the real one (by removing "
You should achieve the same result as previously, except this time you'll have a real, working certificate, ready for installation.
Before proceeding with installation, return to your Websites list and switch your site back to your original application so that it's no longer serving the "
Finally, you can install your certificate via the Control Panel. Hope that helps!
This answer is marked "community wiki".
OK. I found my own way embedding LetsEncrypt certifications by combining several answers from here and there. Many thanks to cpbotha, Neilpang acme.sh and ryans answer above. Forgive me if there is someone I forget.
I already had hosted, in Webfaction, the HTTP version of my website and all I wanted was to redirect traffic to the HTTPS version. But in order to do that, I needed certificates. Below, follows the procedure I took.
Hope this (tutorial) helps someone. You can see it here too Webfaction Letsencrypt Django.
I have 30+ Let's encrypt certificates for my private projects, and renewing them manually might invite many errors. How could your renewal script be extended with a hard-coded array, into which we can paste the webfaction certificate names? Thank you very much nik!
answered 03 Feb, 05:23