Git Product home page Git Product logo

Comments (2)

Cowjiang avatar Cowjiang commented on August 18, 2024 1

I encountered a scenario where certificate check failed via office-addin-dev-certs due to an OpenSSL error.

Reproduce:

  1. disabled OpenSSL or remove it
  2. install dev certs
  3. run office-addin-dev-certs verify

Then you will got 'pls install trusted certs....'

Per checked, this line: if [ 0 -lt $(echo "$cert" | openssl x509 -checkend 86400 | grep -c "will not expire") ]; then throw an error by OpenSSL. However, it will ignore the error thrown by the script's process as @Code-Agitator mentioned.

from office-addin-scripts.

millerds avatar millerds commented on August 18, 2024

Per the comment in the code shown in the screen shot, in some cases (this has to work across different platforms) exceptions are thrown when the certificate is just not installed as opposed to an error when trying to check. The message returned indicates the certificate needs to be installed which is correct in those exception cases.

However, you bring up a valid point that an exception isn't always going to simply be a lack of the certificate being installed. It would be nice to at least provide some output showing what was going on and possibly distinguish between a "missing cert" exception and something else.

Thanks for reporting this. I have added a work item to our backlog (internal id 8677374), but we cannot provide and estimate for when we might get to this. Feel free to submit a PR with a fix for our consideration if you don't feel like waiting.

from office-addin-scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.