VSCode - Self signed certificate

Product: PowerShell Universal
Version: 4.1.0

Hi :slight_smile:

I have followed this guide on how to setup a self-signed certificate - Hosting - PowerShell Universal

It works in my browser, but VSCode is complaining that the certificate is invalid.
image

Considering that there is no actual root CA, the error message makes sense - but i have added the certificate in the Trusted Root Certification Authorities. That fixed it for the browers, but not VSCode.

What setting am i missing?

In your VS Code extension settings, try setting the allowInvalidCertificate setting.

Ctrl+Shift+P → User Settings (JSON)

    "powerShellUniversal.connections": [
        
        {
            "allowInvalidCertificate": true,
            "name": "local",
            "url": "http://localhost:5000",
            "appToken": "xxx"
        },
    ],

That did not work. The certificate error is still appearing, once i click on a item in the VSCode extension (Apps, Scripts, etc).