mongodb-js/vscode

SSL/TLS Connection Issue

shightower opened this issue · 1 comments

Bug Report

Current Behavior

When setting up a SSL/TLS connection, I get the following error message:

Unable to load connection: MongoServerSelectionError: self signed certificate in certificate chain

This should be allowed as my CA chain does contain a root certificate which is self-signed.

Code/Gist

Expected Behavior/Code

The connection should be allowed or there should be some type of configuration option to allow self-signed certs. That is always going to happen if your chain includes a root CA.

Environment

  • node v12.22.2
  • OS: Linux
  • VS Code v1.78.2
  • MongoDB for VS Code v1.0.1

Possible Solution

Allow self-signed certs by default or have a toggle option to allow.

Additional Context/Screenshots

N/A I'm working in a restricted corporate environment

Turns out I was given a bad CA chain file. It was a JKS and not a PEM/crt file. The error message I got from the extensions was misleading, but not a legit problem so I'm closing the issue.