TritonDataCenter / node-asn1

Contains parsers and serializers for ASN.1 (currently BER only)
MIT License
64 stars 35 forks source link

Errors #53

Open ne-cyber opened 1 year ago

ne-cyber commented 1 year ago
  1. when reading Enumeration , it's write Catched error: InvalidAsn1Error: Expected 0xa: got 0xa0 but we know Enumeration != 0xa && Enumeration == 0xa0

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