首页 > 解决方案 > 使用浏览器同步证书时 Excel 插件无法以 SSL 启动

问题描述

我正在开发一个 excel 插件并想在本地调试它,但是当运行时我收到一条类似下面的消息。

在此处输入图像描述

打开 https://localhost:4200/ 时,证书未安装。哪里错了?

我的脚本从 SSL 开始。

  "scripts": {
    "ng": "ng",
    "startProd": "ng serve --ssl true --ssl-key /node_modules/browser-sync/certs/server.key --ssl-cert /node_modules/browser-sync/certs/server.crt --configuration=production",
    "startQa": "ng serve --ssl true --ssl-key /node_modules/browser-sync/certs/server.key --ssl-cert /node_modules/browser-sync/certs/server.crt --configuration=qa",
    "startLocal": "ng serve --ssl true --ssl-key /node_modules/browser-sync/certs/server.key --ssl-cert /node_modules/browser-sync/certs/server.crt",
    "buildLocal": "ng build --optimization=false",
    "buildQa": "ng build --configuration=qa",
    "build": "gulp build",
    "publish": "pushd src && npm version patch && popd && gulp build && npm publish dist",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },

注意:我已经安装了一个新证书,npx office-addin-dev-certs并且 Excel 已经运行。浏览器同步我做错了什么?

标签: visual-studio-codeoffice-addins

解决方案


推荐阅读