-
Notifications
You must be signed in to change notification settings - Fork 913
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
Error: self signed certificate in certificate chain #3723
Comments
@chpurna to clarify, the error is popping as a notification window in Azure Data Studio, or surfacing elsewhere? |
and %APPDATA%\azuredatastudio\Azure Accounts is empty. Developer tools log: |
@chpurna the issue here appears to be that there is something in the environment that is doing inspection of HTTPS traffic (firewall, antivirus software, etc.). This requires installing a self-signed certificate to decode the HTTPS traffic. Unfortunately, Node.JS bundles its own CA list and doesn't use the Windows Certificate Authority store (see details at nodejs/node#4175). There is presumably a CA cert in the Windows Trust Store for whatever is decoding the traffic which is why non-Node.js applications are working properly. There are various workarounds, but no good ones that can be done without updating the application. The following environment variable will turn off Node.JS certificate validation |
@kburtram , thank you for the update... if node.JS has its own CA list, why the same version of ADS working for someone and not for others, please? |
Also, there seems to be an npm package update as below to read CAs from windows store. Please check if this help to update Node.JS for ADS. https://www.npmjs.com/package/system-ca-win32?activeTab=readme |
The bundled CA list is only an issue if you have a component decoding HTTPS traffic in your environment. You’d want to determine what is inspecting the HTTPS traffic in one environment and use the same component in the other environment to repro the issue there. The npm module you referenced is a separate library that would need to be adopted by upstream components and ADS Azure components. This would require product changes to ADS and other external components. |
Note that setting |
Closing as an upstream issue in Node.JS. Please us the workaround list above to work around this issue. Thanks for reporting! |
Issue Type: Bug
When trying to "add account" getting error: 'Error: self signed certificate in certificate chain'. Issue is same with both Installer and zip file. Got admin permissions on the machine... and tried running the ".exe" as admin... no luck
Azure Data Studio version: azuredatastudio 1.3.8 (84009f6, 2019-01-08T23:59:38.228Z)
OS version: Windows_NT x64 10.0.17763
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: