mirror of
https://git.coolaj86.com/coolaj86/csr.js.git
synced 2025-03-13 12:10:44 +00:00
fix test
This commit is contained in:
parent
22b752507f
commit
192f0b48b0
@ -22,7 +22,7 @@ async function run() {
|
|||||||
}).then(function(csr) {
|
}).then(function(csr) {
|
||||||
//var csr = PEM.packBlock({ type: 'CERTIFICATE REQUEST', bytes: der });
|
//var csr = PEM.packBlock({ type: 'CERTIFICATE REQUEST', bytes: der });
|
||||||
console.log(csr);
|
console.log(csr);
|
||||||
if (!/^-----BEGIN CERTIFICATE REQUEST-----\s*MIIB/m.test(csr)) {
|
if (!/^-----BEGIN CERTIFICATE REQUEST-----\s*MII/m.test(csr)) {
|
||||||
throw new Error("invalid CSR PEM");
|
throw new Error("invalid CSR PEM");
|
||||||
}
|
}
|
||||||
console.info('PASS: (if it looks right)');
|
console.info('PASS: (if it looks right)');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user