http-party / http-server

a simple zero-configuration command-line http server
MIT License
13.65k stars 1.5k forks source link

Invalid SSL certificate #668

Open JaredTurck opened 3 years ago

JaredTurck commented 3 years ago

I generated an SSL certificate using OpenSSL, added to my operating systems root certificate store, and started the web server, upon trying to connect to the web server I got the following error in my browser

Attackers might be trying to steal your information from 172.22.144.1 (for example, passwords, messages or credit cards). Learn more
NET::ERR_CERT_COMMON_NAME_INVALID
Subject: 127.0.0.1

Issuer: 127.0.0.1

Expires on: 8 Dec 2030

Current date: 10 Dec 2020

how can I get the certificate validated?

ChrisLoes commented 3 years ago

Hey @JaredTurck ,

I encountered in the same error message. Do you still know your solution?

thanks in advance!

ChrisLoes commented 3 years ago

Hey @JaredTurck ,

thanks you for your answer! ah okay, thought you used it only local on your system ;-)

thanks!

ChrisLoes commented 3 years ago

thanks for your detailed clarification! I have a small different usecase, just want to use ssl for local development and get the error message even though I installed the certificate in my root certificate (trust) store... cloudflare is unfortunately no option in my case. Nevertheless thank you for your support!

github-actions[bot] commented 2 years ago

This issue has been inactive for 180 days