-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running add-in locally no longer works, certificate invalid #244
Comments
So here's how I generated a certificate that would work. I had to install OpenSSL to do this.
That should generate a certificate with the necessary subject and subjectAltName. Now you just need to tell browser-sync to use it instead of their default cert.
|
@jasonjoh Thanks a lot! |
Task: create scripts to automate this scenario. (ref) |
@MIchaelMainer That automation will only work if you have openssl installed. If I'd suggest an alternative, it would be to generate certs for localhost domain and include it into the project as opposed to using browser-sync's. |
Thank you @WrathOfZombies. That's a better idea. |
Just to throw my hat in the ring, when running locally (and I'm not recommending this part), you can just serve HTTP and it the plugin seems to load just fine (tested about 15 seconds ago). I haven't dug into see what all the quirks are, but the generated 'Welcome' page loads. |
I just spend quite some time trying to have the certificate installed because I was thinking I was doing something wrong or maybe something was not working with my computer before finding this issue :( |
I made something similar to @jasonjoh (Thx a lot for your issue and workaround) . It may be easier for people that have git installed on windows since it includes openssl in it (thus I did not install anything except git for windows).
(More info about the command: https://www.h3xed.com/programming/create-a-self-signed-ssl-certificate-using-openssl-on-windows) Then modified the bsconfig.json file as Jason explained and it works just fine both locally and also when importing the add-in in online office. I also made a PR that was merged (THX) to update the readme to mention this ticket. |
Please at least link to this issue and resolution from the tutorial on this page. I spent 2 hours today messing around trying to get the certificate issue resolved. https://docs.microsoft.com/en-us/outlook/add-ins/addin-tutorial |
Thanks @PaulDMendoza for the suggestion, and I'm sorry for your frustration. I'll add a note to the tutorial, at least until this is resolved. |
@PaulDMendoza the note has been added. Thanks again! |
Based on @charly37 and @jasonjoh answers, here's the list of steps that worked for me:
|
I have tried all of the steps from @jasonjoh , @charly37 , and @olegoga but I am still running into a Privacy error page. I also tried installing the certificate into the Google Chrome settings. Can anyone help me figure out what I am missing here? I am very unfamiliar with this aspect of development.
|
Hi I am also getting this error |
@nehasoni3 Yo Office has been updated to use office-addin-dev-certs package to create a non-self-signed certificate which will work. I'm unclear if you're using the latest version of generator-office, and if so, it should work in Chrome. You might need to restart Chrome. |
Even after adding the certificate to your Trusted Local Authorities, the add-in still won't load in Edge.
Browsersync is generating self-signed certificates with a Subject of "Internet Widgits Pty Ltd" instead of "localhost". This seems to be reported in BrowserSync/browser-sync#1362 but not yet fixed.
The text was updated successfully, but these errors were encountered: