Giter VIP home page Giter VIP logo

Comments (8)

Rush avatar Rush commented on August 23, 2024

Updated title. It happens when testing staging letsencrypt certificates.

from ocsp.

indutny avatar indutny commented on August 23, 2024

Hello!

Is there any way to reproduce this issue?

from ocsp.

Rush avatar Rush commented on August 23, 2024

I just tried and I cannot reproduce it for some reason. Maybe there was a streak of "bad" certificates, unfortunately (stupid me) I purged that staging dir.

However we can point out one problem with node-ocsp that could make it better:

let ocsp = require('ocsp');
try {
  ocsp.getOCSPURI('', function(err, uri) {
    console.log('err should be here', err);
  });
} catch(err) {
  console.log('but it is here', err);
}

This throws a sync exception and I believe the exception should be async if the interface is indeed async.

from ocsp.

indutny avatar indutny commented on August 23, 2024

I think I have managed to reproduce the issue. Please consider running npm update, it should be fixed now.

from ocsp.

indutny avatar indutny commented on August 23, 2024

Please open an issue for API thing separately ;)

from ocsp.

lionello avatar lionello commented on August 23, 2024

This error is still happening with latest from master when running npm test. Disappears when I comment out the line with revocationReason in server-test.js

from ocsp.

indutny avatar indutny commented on August 23, 2024

@lionello which node.js version are you using? Could you please gist output of npm list?

from ocsp.

lionello avatar lionello commented on August 23, 2024

https://gist.github.com/lionello/e51c0b66a4db2686dadad8db37dcf551

Check npm test output in my comment for the GIST.

from ocsp.

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.