UNPKG

ocsp-hashes

Version:

Creates ocsp hashes from pem certificate and pem issuer certificate for ocsp revocation validation

13 lines (12 loc) 595 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getOCSPHashes = exports.Name = void 0; var cert_1 = require("./lib/cert"); var Name = function (name) { return "Hello ".concat(name); }; exports.Name = Name; function getOCSPHashes(certPath, issuerCertPath, algo, disableFilePathValidation) { if (algo === void 0) { algo = 'sha256'; } if (disableFilePathValidation === void 0) { disableFilePathValidation = false; } return (0, cert_1.createHashes)(certPath, issuerCertPath, algo, disableFilePathValidation); } exports.getOCSPHashes = getOCSPHashes;