Encryption by default

Google is on the brink of releasing the next version of Chrome that marks the first of a number of changes to the security UX in the browser.

Version 56 will start clearly marking HTTP (unencrypted) sites that contain password or credit card fields as Not Secure. Eventually all unencrypted sites will get that, whether or not they contain those types of fields. Arguably this may seem a bit silly for instance for a site like this blog, but I think it is one of the steps towards raising the general level of security on the web.

The LetsEncrypt initiative releaves you from the pain of manual certificate renewal and generally dealing with obnoxious certificate resellers.

To implement encryption on the blog, first I created a new "A0 standard" sized VM instance (which is around €12/mo) on Azure with Intel's optimized Clear Linux (container edition), and pulled the following from Docker hub:

Where alpine refers to an incredibly lightweight Linux image, which helps keepin the container overhead to a minimum.

You can check out the complete deployment script on https://gist.github.com/klinkby/3c0b944892376dec67e98278d4a3b4de

I also made a few changes to the nginx.tmpl configuration file, but as you see, it was really easy to get up and running.

The Qualsys SSL Labs test result says HTTPS implementation is a perfect A+. And despite the tiny Linux box, Pingdom Tools rate the site's performance to A (91).

Google
m@kli.dk @klinkby RSS feed  GitHub