diff --git a/tests/index.js b/tests/index.js index 80c00a5..c8ab4d2 100644 --- a/tests/index.js +++ b/tests/index.js @@ -22,7 +22,7 @@ async function run() { }).then(function(csr) { //var csr = PEM.packBlock({ type: 'CERTIFICATE REQUEST', bytes: der }); 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"); } console.info('PASS: (if it looks right)');