just installed it and made a file server.js
const AutoEncryptLocalhost = require('@small-tech/auto-encrypt-localhost')
const server = AutoEncryptLocalhost.https.createServer()
it says it's runnig:
📜 ❨auto-encrypt-localhost❩ Local development TLS certificate exists.
✨ ❨auto-encrypt-localhost❩ HTTP server is listening on port 80.
Web server is running at https://localhost
ips [ '127.0.0.1', '192.168.0.13' ]
👉 ❨auto-encrypt-localhost❩ Redirecting HTTP request to HTTPS.
👉 ❨auto-encrypt-localhost❩ Redirecting HTTP request to HTTPS.
but opening https://localhost:80 in google chrome gives me:
This site can’t provide a secure connectionlocalhost sent an invalid response.
ERR_SSL_PROTOCOL_ERROR
and using curl https://localhost:80 gives me:
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
Something seems to not work properly, but I don't have much experience with certificates yet.
Any help is appreciated :-)
just installed it and made a file
server.jsit says it's runnig:
but opening
https://localhost:80in google chrome gives me:and using
curl https://localhost:80gives me:Something seems to not work properly, but I don't have much experience with certificates yet.
Any help is appreciated :-)