WIP more asn1

This commit is contained in:
AJ ONeal 2018-11-18 14:35:05 -07:00
parent ab8ec9fa7c
commit afec646eb1
1 changed files with 1 additions and 1 deletions

View File

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