Unable to install CA cert for local development on Windows 10 with VSCode
See original GitHub issueExpected behavior
Developer documentation https://docs.microsoft.com/en-us/office/dev/add-ins/quickstarts/outlook-quickstart?tabs=yeomangenerator works as expected
Current behavior
When running the dev server OR when trying to manually install the dev CA cert, I get the following:
The developer certificates have been generated in C:\Users\Nathan.office-addin-dev-certs Installing CA certificate “Developer CA for Microsoft Office Add-ins”… Error: Unable to install the CA certificate.
The larger output when running the dev server (vs directly installing the CA cert) is:
C:\Users\Nathan\source\ask\Ask>npm run dev-server
office-addin-taskpane-js@0.0.1 dev-server C:\Users\Nathan\source\ask\Ask webpack-dev-server --mode development
The developer certificates have been generated in C:\Users\Nathan.office-addin-dev-certs
Installing CA certificate “Developer CA for Microsoft Office Add-ins”…
office-addin-dev-certs: Unable to install the CA certificate.
at install.js:65:19
at Generator.next (<anonymous>)
at install.js:9:71
at new Promise (<anonymous>)
at __awaiter (install.js:5:12)
at installCaCertificate (install.js:54:12)
at Object.<anonymous> (install.js:42:23)
at Generator.next (<anonymous>)
at fulfilled (install.js:6:58)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! office-addin-taskpane-js@0.0.1 dev-server: webpack-dev-server --mode development
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the office-addin-taskpane-js@0.0.1 dev-server script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Nathan\AppData\Roaming\npm-cache_logs\2020-11-20T18_35_11_934Z-debug.log
Steps to Reproduce
Smallest repro I could do is:
- npm install -g yo generator-office
- yo office
- Select outlook as the project
- npm run dev-server OR npx office-addin-dev-certs install
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
-
Operating System: Windows 10
-
Node version: v10.15.0
-
Office version: Version 2010 Build 13328.20356 Click to Run
-
Tool version: npx office-addin-dev-certs -V resulted in (version not available) Package.json:
“office-addin-cli”: “^1.0.16”, “office-addin-debugging”: “^3.0.39”, “office-addin-dev-certs”: “^1.5.9”, “office-addin-lint”: “^1.0.29”, “office-addin-manifest”: “1.5.7”, “office-addin-prettier-config”: “^1.0.12”,
Failure Logs
Issue Analytics
- State:
- Created 3 years ago
- Comments:14
Are you an admin on this machine? If so, can you please try the following: npx office-addin-dev-certs install --machine
That’s great to hear @Nate53085. Thanks for letting us know!
-Courtney