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
- 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