Needs https access to my Flightaware

Now that the likes of Google (chrome) are insisting on https, accessing one’s own site http (port 80) is becoming problematic.

So my PiAware needs to have an SSL certificate. I have a wildcard certificate for my own domain so just need to get it on. its just I do not know how to install it on a Pi running Flightaware. I cannot see any reference to doing this Googling around.

Also others may need to use LetsEncrypt.

Anyone done this and how? Soon it will have to be part of a Piaware build, that is default to ask to install one’s own certificate or enable LetsEncrypt.

Gerry G3WIP

Have you looked at the webserver creator’s documentation for this?

1 Like

Thanks for that. Really useful link.

Looks simple to enact. Shall play later.

Gerry

1 Like

Adding SSL It was very easy in lighttpd.conf: I could use any spare socket number or default 443

$SERVER[“socket”] == “:9688” {
ssl.engine = “enable”
server.name = “myservername”
ssl.pemfile = “/pathto/certificate.pem”

See https://yell.bulger.co.uk
On my web site VPS I redirect the yell.subdomain page to localhost:socket which has a reverse tunnel running from my remote site, which has the certificate.

On another system I even managed to have virtual hosts (after much fiddling around) using different certificates, one from letsencrypt. It seems to need a default similar as above then adding again. It works, but may not be the correct way.

$HTTP[“host”]=~“domain2” {
#$SERVER[“socket”] == “:443” {

server.name = "domain2"
ssl.pemfile = "/etc/letsencrypt/live/domain2/fullchain.pem"
ssl.privkey = "/etc/letsencrypt/live/domain2/privkey.pem"

}
$HTTP[“host”]=~“myservername” {
#$SERVER[“socket”] == “:443” {
server.name = “myservername”
ssl.pemfile = “/pathto/myservername.pem”
}

I kept checking syntax with lighttpd -t -f /etc/lighttpd/lighttpd.conf
it reports place of error when fixed then “Syntax OK”