我已经安装了 OpenSSL 并创建了证书和私钥。我使用了此页面中的配置(如下所示),但是当我使用VS Code 中的实时服务器扩展时,它显示“连接不安全”和“证书无效”。
liveServer.settings.https:启用https协议。
特性 :
"liveServer.settings.https": {
"enable": false, //set it true to enable the feature.
"cert": "C:\\https\\server.cert", //full path
"key": "C:\\https\\server.key", //full path
"passphrase": "12345"
},
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6909 次 |
| 最近记录: |