Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors #53

Open
ne-cyber opened this issue Jun 21, 2023 · 0 comments
Open

Errors #53

ne-cyber opened this issue Jun 21, 2023 · 0 comments

Comments

@ne-cyber
Copy link

ne-cyber commented Jun 21, 2023

  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 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant