question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to install CA cert for local development on Windows 10 with VSCode

See original GitHub issue

Expected 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:

  1. npm install -g yo generator-office
  2. yo office
  3. Select outlook as the project
  4. 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

2020-11-20T18_14_43_050Z-debug.log

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
TCourtneyOwencommented, Nov 20, 2020

Are you an admin on this machine? If so, can you please try the following: npx office-addin-dev-certs install --machine

0reactions
TCourtneyOwencommented, Nov 24, 2020

That’s great to hear @Nate53085. Thanks for letting us know!

-Courtney

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install certificates required for Visual Studio offline installation
Option 1 - Manually install certificates from a layout folder. When you create a network layout or a local offline cache, the necessary ......
Read more >
How do I get Visual Studio Code to trust our self-signed proxy ...
First, make sure that the certificates are installed and trusted (I have them in the System category). Then, go into VScode settings, ...
Read more >
Remote Development Tips and Tricks - Visual Studio Code
Visual Studio Code Remote Development troubleshooting tips and tricks for SSH, Containers, and the Windows Subsystem for Linux (WSL)
Read more >
Setting up SSL for tabs in the Teams Toolkit for Visual Studio ...
On Windows. Double click on the ca.crt file and click “Install Certificate”. Choose Local Machine and click next.
Read more >
Self-signed certificates or custom Certification Authorities
Copies it to /usr/local/share/ca-certificates/ca.crt inside the Docker ... apt-get install -y ca-certificates > /dev/null cp /etc/gitlab-runner/certs/ca.crt ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found