GreyMamba

Thinking Allowed … (under construction)

Thinking Allowed … (under construction)

A computer once beat me at chess, but it was no match for me at kick boxing.
Emo Philips
Snippets covering IT techniques, Python coding and Rapidweaver
Just a section to cover anything related to 'Information Technology'. Computers, Coding, Algorithms, A.I. and so on. There will probably be quite a bit on how to make a web site (one of the reasons I'm actually doing this is to learn how) including much on Rapidweaver and Stacks. There will be code - most likely Python along with general computery items.

I'm quite into Python programming and as such I've written a bit of an interactive Python booklet (link opens in new window) covering some of the stuff needed to program in it.

It's probably appropriate to mention here that I've used RapidWeaver 8 to help me generate this website. I've also made use of the excellent Free DNS service to overcome the limitations imposed by not having a static IP address.

Synology - Setting up HTTPS

I'd managed, by some methodology lost in the mists of time, to partially enable HTTPS on my Synology webserver - serving this site. However, a couple of days ago, the certificate expired and web browsers across the Universe got their underwear in a twist, decided my site must be the devils own work and refused to countenance opening any page.

Unfortunately, this also applied to my admin interface - which made it difficult to fix! I found a bit of a backdoor (which I won't detail here for obvious reasons), logged in and proceeded to trash the system with by ham-fisted, impatient efforts to sort things out. So, in a further fit of patience deficit, I did a factory reset, and re-set up a non-certificated server.

Now to get my security back:

Being a cheapskate, and not really needing a super-secure system, I decided to use a free certificate from "Let's Encrypt". Synology does in fact have an automatic way of doing this. There is reasonable documentation and this youtube video covers it pretty well.

Log in to your DSM 6.0 or higher.

Let's Encrypt certificates will renew every 90 days. However, to get an initial one and to allow the renewal you need to add a port forwarding rule on the NAS - port 80, TCP. Do this through Network > Traffic Control.

Now just go to Security > Certificate and 'add > add a new certificate' and follow the prompts for adding a free Let's Encrypt certificate. make it the default certificate for simplicity. You can also configure what uses this certificate on this page.

Finally go to Network > DSM settings and click "Automatically redirect HTTP ..."

Don't forget that this will change the port on which your DSM access page sits.

Finally, even after doing all this, my Rapidweaver generated web site was giving partial security warnings. This was because I hadn't changed the address of my website from http to https in the Publish and General settings. Did that, re-published and all is now OK!

Back
 

Nice photo from an unusual perspective. Kudos to Joshua Sortino

RapidWeaver Icon

Made in RapidWeaver