How Can I implement a secure https connection on ngnix
I want to implement https on my localhost.I am running http server nginx on ubuntu 20.04
What I did was i issued the command
sudo openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /etc/ssl/private/localhost.key -out /etc/ssl/certs/localhost.crt -config /tmp/opensslThen I configured nginx to use ssl as
listen 443 ssl default_server; listen [::]:443 ssl default_server; ssl_certificate /etc/ssl/certs/localhost.crt; ssl_certificate_key /etc/ssl/private/localhost.key;And Refreshed and reloaded nginix ...ok fine
certutil -d sql:$HOME/.pki/nssdb -A -t "P,," -n localhost.crt -i /etc/ssl/certs/localhost.crt. .Every thing went fine
The tutorial i followed was from here
But when i tried to connect to
I got as
Then I clicked Advance and proceeded ..Then I got a MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT Error in Firefox
But when opening in chrome the error is
when i tried on wget
When I tried on postman
Please help me on how to get a secure self signed trusted https connection on localost
3 Reset to default