Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 2.33 KB

trust-self-signed-cert.md

File metadata and controls

42 lines (25 loc) · 2.33 KB

Adding Self-Signed Certificates as Trusted Root Certificate

This generator leverages the gulp plugin gulp-webserver that includes a self-signed certificate. Your workstation will not trust this certificate and thus, the Office client where you are running your Office Add-in from will not load your add-in from an untrusted and unsecure location.

To fix this, you need to configure your developer workstation to trust the self-signed certifiacte from the gulp plugin. The steps for this differ depending on your developer environment (OSX / Windows / Linux). Use these instructions to trust the certificate:

Trusting a Self-Signed Certificate on OS X

Using Chrome, when you browse to a site that has an untrusted certificate, the browser will display an error with the certificate:

The following instructions demonstrate trusting a certificate on OS X using the Chrome browser.

  1. Start Chrome and do the following:

  2. In the address bar, click the little lock with the X. This will bring up a small information screen. Click the button that says "Certificate Information."

  3. Click and drag the image to your desktop. It looks like a little certificate.

![](assets/ssl-get-cert.png)
  1. Open the Keychain Access utility in OS X.
  2. Select the System option on the left.
  3. Click the lock icon in the upper-left corner to enable changes.
![](assets/ssl-keychain-01.png)
  1. Click the plus button at the bottom and select the localhost.cer file you copied to the desktop.
  2. In the dialog that comes up, click Always Trust.
  3. After localhost gets added to the System keychain, double-click it to open it again.
  4. Expand the Trust section and for the first option, pick Always Trust.
![](assets/ssl-keychain-02.png)

At this point everything has been configured. Quit Chrome and all other browsers and try again to navigate to the local HTTPS site. The browser should report it as a valid certificate:

You now have a self-signed certificate installed on your machine.