From afec646eb13da5932ed6997da422d3b53d4f0666 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 18 Nov 2018 14:35:05 -0700 Subject: [PATCH] WIP more asn1 --- lib/ecdsacsr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ecdsacsr.js b/lib/ecdsacsr.js index bd12e0e..adb1d42 100644 --- a/lib/ecdsacsr.js +++ b/lib/ecdsacsr.js @@ -305,7 +305,7 @@ function createCsrBodyEc(domains, xy) { , ASN1('06', '55 1D 11') , ASN1('04' , ASN1('30', domains.map(function (d) { - return csrDomains.replace(/{dlen}/, numToHex(d.length)).replace(/{domain\.tld}/, strToHex(d)); + return ASN1('82', strToHex(d)); }).join('')))))))); var body = [ '30 81 {+85+n}' // 4 bytes, sequence .replace(/{[^}]+}/, numToHex(3 + 13 + sublen + 27 + publen + 30 + sanlen))