Skip to content

curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number #3

@serapath

Description

@serapath

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 :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions