From ba924071947283f0e460b37dd9f1f2ff32d161f0 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 18 Nov 2018 14:11:54 -0700 Subject: [PATCH] WIP more asn1 --- lib/ecdsacsr.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ecdsacsr.js b/lib/ecdsacsr.js index 6321263..709838e 100644 --- a/lib/ecdsacsr.js +++ b/lib/ecdsacsr.js @@ -286,13 +286,13 @@ function createCsrBodyEc(domains, xy) { // Subject // #1 Total 2+11+n , ASN1('30' - , '31 {4.3.0setlen}' // 2 bytes, set - .replace(/{[^}]+}/, numToHex(2+5+2+sublen)) + , ASN1('31' , ASN1('30' // object id (commonName) , ASN1('06', '55 04 03') , ASN1('0C', strToHex(domains[0])) ) + ) ) // P-256 Public Key