From 192f0b48b0083545de43331c78fc222fd16bec89 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 15 Oct 2019 04:59:52 -0600 Subject: [PATCH] fix test --- tests/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)');