We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It may makes sense for the example to call .probe() so cached OCSP responses get reused.
.probe()
var cache = new ocsp.Cache(); var server = https.createServer({ cert: cert, key: key }, function(req, res) { res.end('hello world'); }); server.on('OCSPRequest', function(cert, issuer, cb) { ocsp.getOCSPURI(cert, function(err, uri) { if (err) return cb(err); var req = ocsp.request.generate(cert, issuer); cache.probe(req.id, function(err, response) { if (err) return cb(err); if (response) return cb(null, response); var options = { url: uri, ocsp: req.data }; cache.request(req.id, options, cb); }); }); });
The text was updated successfully, but these errors were encountered:
readme: fixed cache example
f2fd7af
- Handle missing URI - Look up cached response fix indutny#11 fix indutny#10 fix indutny#15
1dc3b23
- Handle missing URI - Look up cached response fix #11 fix #10 fix #15
Successfully merging a pull request may close this issue.
It may makes sense for the example to call
.probe()
so cached OCSP responses get reused.The text was updated successfully, but these errors were encountered: