Skip to content

Self-signed certificate error when installing Python support in WSL in spite of custom root certificate correctly installed in WSL #131836

Description

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.59.1
  • OS Version: Windows 10.0.19042, WSL 5.10.16.3-microsoft-standard-WSL2
  • Python Language extension : v2021.8.1159798656

My company uses an SSL inspection on company devices and provides a custom root CA certificate. In Windows, this is already pre-installed in the system certificate store and VS Code works fine in Windows where there are no problems installing & using Python language support. For WSL, the certificates & a process to install them in the system certificate store are provided (below) However, when trying to setup Python Language support in WSL I get a self-signed certificate error in spite of following the process to install the custom root certificates in WSL.

Steps to Reproduce:

  1. Copy custom certificates to WSL CA-Certificates folder
sudo cp *.crt /usr/local/share/ca-certificates/
  1. Install
sudo update-ca-certificates
  1. Launch VS Code and connect to WSL project
  2. Try to install Python support in WSL
  3. Get error - self signed certificate in certificate chain

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugproxyIssues regarding network proxies

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions