Welcome! Log In Create A New Profile


Nginx and SSL

Posted by PPee 
Nginx and SSL
February 04, 2021 09:03AM
Hi All,

I m having a problem with a very simple nginx docker implementation on a raspberry pi 2B. I’m trying to setup secure access via port 443, using self signed certs.
HTTP request [port 80] works fine; HTTPS gives " This site can’t be reached" alert.

Some details:
Raspberry Pi 2B - RaspOS
Docker & Docker Compose Installed
Created self signed Certificate with OpenSLL - privatkey and crt
Nginx container has 2 ports open : 80 and 443
Both ports are open and forwarded to the Rasp in my router
My domain name works in http access.

3 binded volumes:

… : /etc/nginx/conf (contains nginx.conf)
… : /usr/share/nginx/html
… : /etc/nginx/certs

Loaded the certificates in the mounted volume
Specified the certificates container location (etc/nginx/certs/…) in the nginx.conf file.
Added the cert file to my Google Chrome on MacOS browser; and cleared the cache.
nginx container starts without errors, and I checked that the certificates are loaded into the container at the correct location in the container (etc/nginx/certs/…). So far so good I thought, but https access keeps producing the " This site can’t be reached" message.
Did I miss something?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 63
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready