Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode extension can't connect if SSL cert are self signed #33

Open
constantinhager opened this issue Jul 6, 2024 · 0 comments
Open

Comments

@constantinhager
Copy link

Create a self singed Root Certificate and a Selfsigned Certificate with the follwing code

$params = @{
    Type              = 'Custom'
    Subject           = 'CN=PSURootCert'
    KeySpec           = 'Signature'
    KeyExportPolicy   = 'Exportable'
    KeyUsage          = 'CertSign'
    KeyUsageProperty  = 'Sign'
    KeyLength         = 2048
    HashAlgorithm     = 'sha256'
    NotAfter          = (Get-Date).AddMonths(120)
    CertStoreLocation = 'Cert:\LocalMachine\My'
}
$cert = New-SelfSignedCertificate @params

$params = @{
    Type              = 'SSLServerAuthentication'
    Subject           = 'CN=updatedashboard.chhome.de'
    DnsName           = 'DEVBOX'
    KeySpec           = 'KeyExchange'
    KeyLength         = 2048
    HashAlgorithm     = 'sha256'
    NotAfter          = (Get-Date).AddMonths(120)
    CertStoreLocation = 'Cert:\LocalMachine\My'
    Signer            = $cert
    TextExtension     = @(
        '2.5.29.37={text}1.3.6.1.5.5.7.3.1'
    )
    Provider          = 'Microsoft RSA SChannel Cryptographic Provider'
}
New-SelfSignedCertificate @params

If I try to use this certificate with the VSCode extension I get the following error messages:

image

I also checked the forums and did the things described in this post Forum Post.

The Root Certificate is in Machine -> Trusted Root Certification authorities
The normal chertificat is in Machine -> My

Is there any problem with the extension?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant