pfx-load
Version:
Validate your pfx certificate in the easier way possible
36 lines (35 loc) • 1.16 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
var src_1 = __importDefault(require("../src"));
var fs = __importStar(require("fs"));
var testFunc = function () {
var DIR = './certificates';
var dir = fs.readdirSync(DIR, { withFileTypes: true });
var passwords = [
'BV2019',
'BV2019',
'BV2019',
'BV2019',
'BV2019',
'BV2019',
'BV2019',
'BV2019'
];
dir.map(function (file, index) {
var obj = src_1.default([DIR, '/', file.name].join(''), passwords[index]);
console.log(obj);
});
// const obj = pfxLoad('./certificates/5ddede183b2b8700116c7966.pfx', 'BV2019')
// console.log(obj);
};
testFunc();