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))