WIP more asn1
This commit is contained in:
parent
526a4416fe
commit
ba92407194
|
@ -286,14 +286,14 @@ function createCsrBodyEc(domains, xy) {
|
||||||
// Subject
|
// Subject
|
||||||
// #1 Total 2+11+n
|
// #1 Total 2+11+n
|
||||||
, ASN1('30'
|
, ASN1('30'
|
||||||
, '31 {4.3.0setlen}' // 2 bytes, set
|
, ASN1('31'
|
||||||
.replace(/{[^}]+}/, numToHex(2+5+2+sublen))
|
|
||||||
, ASN1('30'
|
, ASN1('30'
|
||||||
// object id (commonName)
|
// object id (commonName)
|
||||||
, ASN1('06', '55 04 03')
|
, ASN1('06', '55 04 03')
|
||||||
, ASN1('0C', strToHex(domains[0]))
|
, ASN1('0C', strToHex(domains[0]))
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
)
|
||||||
|
|
||||||
// P-256 Public Key
|
// P-256 Public Key
|
||||||
// #2 Total 2+25+xy
|
// #2 Total 2+25+xy
|
||||||
|
|
Loading…
Reference in New Issue