Skip to main content

Posts

Featured

Using SSL with NodeJS and OpenShift

While building my latest project website I decided it would be nice to finally use custom SSL. Yes, I know, I should do it by default on all of my sites. It's good practise....but it can be hard (especially if you are doing it for free).
I already use LetsEncrypt for my OpenVPN home connection, so that was my first port-of-call for an SSL certificate. The main problem is generating the certificates, specifically proving that you own the domain you need the certificate for. LetsEncrypt provide a number of mechanisms to do this:Using their 'certbot' tool on the server you need the certificate forAdding a TXT record to DNSProviding a 'known' response on the domain being requested I decided on the latter of these options as I had successfully used it on my OpenVPN installation (unlike the DNS option which I couldn't get running). I am also running on OpenShift so using 'Certbot' is a problem.

How I did it.. setup I use NodeJS for most of my 'hobby…

Latest posts

INSPIRE Data Viewer

Node.js on Heroku and OpenShift

Breadboard modification - Power supply

Spring Boot remote shell - Handy :)

Spring Boot, Apache Camel, Actuator and Hawt.io - A Winning combination

XBox One or PS4 - A tales of two consoles. (RANT warning)

Arduino LED Light bug

ESP8266 Jenkins build monitor conversion to home internet alarm

My first ESP8266

Configuring Draytek 2710 to use OpenDNS for Family Internet Protection