In ocsp.check method was included a new option (requestByGet) to allow ocsp requests using GET method. You can see an usage example on this project
Usage:
var server = ocsp.Server.create({
caCert: cacert, //optional, will be the same as `cert` if not supplied
cert: cert,
key: key
});
server.addCert(43, 'good');
server.addCert(44, 'revoked', {
revocationTime: new Date(),
revocationReason: 'CACompromise'
});
server.listen(8000);
OCSP Server, i.o.w. HTTP server providing OCSP responses for supplied OCSP requests.
This package is a fork of https://github.com/indutny/ocsp
- added the option requestByGet on check method to make GET OCSP requests instead of POST
- node 16,18 compatibility
- tests fixed
- node 14 compatibility
- dependency upgrades
- ES6 classes
- standardjs instead of jshint
- fixed tests
- fixed from github network:
- cache timeout fix: https://github.com/JoneXie1986/ocsp/commit/63b25b4e194d2ae162b02257a8d255728ee6560f
- Add server's cert to ocsp response: https://github.com/enumatech/ocsp/commit/b2d428f1a2e4108ec7922f366ef7a80e0c4b4957
- signature algorithms updated: https://github.com/spoopy-link/ocsp/commit/945fbafaa3f7a2bde80e6bc6f02eb7943e094396
- ocsp agent error handling: https://github.com/Mustek/ocsp/commit/d9c3f63f55723cb25f16754d328791b27f1e89a8
- return more details on ocsp error: https://github.com/lukeadickinson/ocsp/commit/8a52f42a66a6df81fa4b45d70a3dfdb99438acf5
- ocsp cache invalidation fix: https://github.com/ad737079/ocsp/commit/811068724f9bf155d61efd6aced0a55c1ccb9168
- fix crash on expired certs: indutny#37
- catch verify errors: https://github.com/indutny/ocsp/pull/36/files
- indutny#22
- null reference fix: https://github.com/KSR-Yasuda/ocsp/commit/317dc96ac9056b50a04dba606a1b5a8d910dbb17
- cache clear feature: https://github.com/spurreiter/ocsp/commit/6a2f012a11d2fd7a515c16a80bc12e628cc29853