0

我正在从命令行运行实时服务器:

live-server --port=8282 --host=192.168.1.231 --https=/home/.nvm/versions/node/v14.8.0/lib/node_modules/live-server-https --entry-file=/index.html

我想添加我自己的证书,如下例所示:

{
  "liveServer.settings.https": {
    "enable": true, //set it true to enable the feature.
    "cert": "D:\\https\\primary.crt", //full path of the certificate
    "key": "D:\\https\\private.key", //full path of the private key
    "passphrase": "12345"
  }
}

.live-server.json 或 cmd 行参数中的正确格式是什么?

4

0 回答 0