Nyuokimi
Nyuokimi

Reputation: 189

Add-In Error: Content is blocked because it isn't signed by a valid security certificate in Outlook 365

Currently I am developing my custom add-in for outlook 365/

Then I am trying to use it for testing for example it shows me error. I investigated and found what it opens addon in iframe in edge browser. So question is how to add certificate/s to edge to allow my app to work in it?

I am using :

Error image

What I tried

Upvotes: 1

Views: 6304

Answers (4)

Meisam Mofidi
Meisam Mofidi

Reputation: 161

The easy solution that worked for me was remove .office-addin-dev-cer from User folder. Then by running my Add-Ins by npm start I got popped by a message box to remove existing certificates (ca.crt, localhost.crt). After clicking on Yes for 3 messages I have been asked to install new certificates and all certificates re-installed and my Add-Ins works fine now.

enter image description here

Upvotes: 1

Nyuokimi
Nyuokimi

Reputation: 189

Well I found the solution. solution was to create and add certificate to app. In desktop outlook aka office outlook for desktop it uses Edge browser as sidebar for Add-ins.

Reason is what browsers need Subject Alternative Name in certificate. So need to create a trusted self-signed SSL cert for localhost (for use with Express/Node) . So the solution was found in this post.

Upvotes: 0

Brian Gonzalez
Brian Gonzalez

Reputation: 1354

This may be an old issue which has resurfaced. You can see more info here

Upvotes: 0

Eugene Astafiev
Eugene Astafiev

Reputation: 49455

While not strictly required in all add-in scenarios, using an HTTPS endpoint for your add-in is strongly recommended. Add-ins that are not SSL-secured (HTTPS) generate unsecure content warnings and errors during use. If you plan to run your add-in in Office on the web or publish your add-in to AppSource, it must be SSL-secured. If your add-in accesses external data and services, it should be SSL-secured to protect data in transit. Self-signed certificates can be used for development and testing, so long as the certificate is trusted on the local machine.

See Server requirements for more information.

Upvotes: 0

Related Questions