weixin_39581845
weixin_39581845
2020-11-26 20:31

UNABLE_TO_GET_ISSUER_CERT_LOCALLY

Issue Type: Bug

Install mssql extension, Receive an error "UNABLE_TO_GET_ISSUER_CERT_LOCALLY" e.g. (happens with both mssql and intellicode installs)

Platform: win32, x86_64 (Windows)

Installing SQL tools service to c:\Users\BRITTG2.vscode\extensions\ms-mssql.mssql-1.8.0\sqltoolsservice\1.8.0\Windows. Downloading https://download.microsoft.com/download/e/7/8/e781cf8f-9c3f-4ad5-bd0c-f3c62b8bc6bd/microsoft.sqltools.servicelayer-win-x64-netcoreapp2.2.zip [ERROR] Error: Request error: UNABLE_TO_GET_ISSUER_CERT_LOCALLY

Note: I am behind a corp fw. FWIW I tried the suggestion here: Network Connections in Visual Studio Code

where it says, in part:

If all else fails, you can tell VS Code to ignore all certificate errors using the --ignore-certificate-errors command-line flag. Warning: This is dangerous and not recommended, since it opens the door to security issues.

However, that is an invalid flag :

code --ignore-certificate-errors Option 'ignore-certificate-errors' is unknown. Ignoring. Version: 1.41.1 (system setup) Commit: 26076a4 Date: 2019-12-18T14:58:56.166Z Electron: 6.1.5 Chrome: 76.0.3809.146 Node.js: 12.4.0 V8: 7.6.303.31-electron.0 OS: Windows_NT x64 10.0.18362

VS Code version: Code 1.41.1 (26076a4, 2019-12-18T14:58:56.166Z) OS version: Windows_NT x64 10.0.18362

System Info Item Value CPUs Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 2112) GPU Status 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled metal: disabled_off multiple_raster_threads: enabled_on oop_rasterization: disabled_off protected_video_decode: enabled rasterization: enabled skia_renderer: disabled_off surface_control: disabled_off surface_synchronization: enabled_on video_decode: enabled viz_display_compositor: enabled_on viz_hit_test_surface_layer: disabled_off webgl: enabled webgl2: enabled Load (avg) undefined Memory (System) 15.88GB (2.82GB free) Process Argv
Screen Reader no VM 0% Extensions (9) Extension Author (truncated) Version githistory don 0.4.13 gitlens eam 10.2.0 code-runner for 0.9.15 gc-excelviewer Gra 2.1.32 mssql ms- 1.8.0 python ms- 2020.1.57204 powershell ms- 2019.12.0 partial-diff ryu 1.4.0 vscode-hexdump sle 1.7.2

该提问来源于开源项目:microsoft/vscode-mssql

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

9条回答

相关推荐