SmartBear / vscode-swaggerhub-release

SwaggerHub for VS Code - Providing SwaggerHub Integration inside the Visual Studio Code IDE.
https://marketplace.visualstudio.com/items?itemName=SmartBearSoftware.vscode-swaggerhub
12 stars 0 forks source link

On-Premise certificate error #6

Closed yondersever closed 4 years ago

yondersever commented 4 years ago

I'am getting following error when I refresh apis and domains. Because of that error list is not filled.

Error:

request to (url) failed, reason: unable to verify the first certificate

photchkiss commented 4 years ago

Getting the same error. I am wondering if there is a way to provide a cafile or something that includes certificates not signed by a Global CA?

hkosova commented 4 years ago

This answer suggests adding the trusted certificates (root + intermediate) to the operating system's certificate store:

According to https://code.visualstudio.com/docs/setup/network, the solution is to edit the system certificate store:

Since Chromium uses the OS's certificate trust infrastructure, the preferred option is to add your proxy's certificate to your OS's trust chain.

This means that your answer is OS-dependent:

  • Windows: Powershell Import-Certificate or the GUI equivalent
  • Mac: Via Keychain Access
  • NSS under linux - it is unclear which NSS database it uses. certutil is used to edit them.

Can you try and see if this resolves the issue?

yondersever commented 4 years ago

This answer suggests adding the trusted certificates (root + intermediate) to the operating system's certificate store:

According to https://code.visualstudio.com/docs/setup/network, the solution is to edit the system certificate store:

Since Chromium uses the OS's certificate trust infrastructure, the preferred option is to add your proxy's certificate to your OS's trust chain.

This means that your answer is OS-dependent:

  • Windows: Powershell Import-Certificate or the GUI equivalent
  • Mac: Via Keychain Access
  • NSS under linux - it is unclear which NSS database it uses. certutil is used to edit them.

Can you try and see if this resolves the issue?

It solved my problem. Thanks for your help.