Open ne-cyber opened 1 year ago
when reading Enumeration , it's write Catched error: InvalidAsn1Error: Expected 0xa: got 0xa0 but we know Enumeration != 0xa && Enumeration == 0xa0
Catched error: InvalidAsn1Error: Expected 0xa: got 0xa0
when reading DER, must read not base64, but decoded base64:
let crtInPemBfr = Buffer.from(crtPem) let crtInHexBfr = Buffer.from(crtInPemBfr , 'base64') let reader = new asn1.BerReader(crtInHexBfr )
when reading Enumeration , it's write
Catched error: InvalidAsn1Error: Expected 0xa: got 0xa0
but we know Enumeration != 0xa && Enumeration == 0xa0when reading DER, must read not base64, but decoded base64: