-
-
Notifications
You must be signed in to change notification settings - Fork 37.1k
TLS fails reading self-signed certificate on node 4.2.5+ #5100
Copy link
Copy link
Closed
Labels
confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.ltsIssues and PRs related to Long-Term Support (LTS) releases.Issues and PRs related to Long-Term Support (LTS) releases.tlsIssues and PRs related to the tls subsystem.Issues and PRs related to the tls subsystem.
Description
Activity
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.ltsIssues and PRs related to Long-Term Support (LTS) releases.Issues and PRs related to Long-Term Support (LTS) releases.tlsIssues and PRs related to the tls subsystem.Issues and PRs related to the tls subsystem.
I'm having an issue with ssl certificate validation using the
tlsmodule. The server is started with:The client:
My issue is that I get
tlsSocket.authorizationErrorSELF_SIGNED_CERT_IN_CHAIN on v4.2.5+ but not on older versions. Here's my output on a Windows machine, but the same happens on an Ubuntu server.The
auth->line is printed to console with thetlsSocket.authorizationErrorparameter when a client connects. In the case of a successful connect this field isnull.Tested down to 0.12.9, all versions read the certificate without issues.