-
Type: Bug
-
Resolution: Gone away
-
Priority: Major - P3
-
Affects Version/s: 0.2.0
-
Component/s: Connectivity
-
None
-
Environment:VScode running in WSL2 (Ubuntu 20.04)
-
3
-
Iteration Papaya
-
Not Needed
When running VScode in Ubuntu (under WSL2) it is impossible to specify correct paths to certificates that need to be used to setup an SSL/TLS connection.
Reproduction:
- On Windows setup an Ubuntu 20.04 WSL2 instance and install VScode
- On Windows setup an X server
- Start VScode with the display set to the windows X server
- Assuming the username is bob, create your CA.pem and client.pem in bobs home dir
- Install MongoDB VScode plugin and create a connection which specifies the above files
Outcome:
Instead of the file paths being set to
- /home/bob/CA.pem
- /home/bob/client.pem
They are set to:
- /mnt/c/Users/<windows user name>/home/bob/CA.pem
- /mnt/c/Users/<windows user name>/home/bob/CA.pem
The connection will fail with file not found. The text is not editable so you can't manually specify the correct path.
Opening the same files in VScode directly and checking the path returns the correct path, so we appear to be returning the incorrect value from the file dialog. Hopefully we can fix this or allow the user to manually edit the field to the correct values.
The same files / environment work correctly in Compass so the WSL2 environment should not be an issue (WSL2 = HyperV VM)
- is duplicated by
-
VSCODE-284 Unable to retrieve CA files when on WSL
- Closed