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

How to decode certificate extension value? #1089

Open
jdai-godaddy opened this issue Jul 19, 2024 · 1 comment
Open

How to decode certificate extension value? #1089

jdai-godaddy opened this issue Jul 19, 2024 · 1 comment

Comments

@jdai-godaddy
Copy link

No description provided.

@El-Virus
Copy link

Assuming you're talking about X.509 certificates:
It depends on the extension, as different extensions have different value types. Take a look at: RFC 5280 § 4.2.
It is worth noting that the following extensions, have already been decoded and if present can be accessed as: certObj.attributes.extensions: keyUsage, basicConstraints, extKeyUsage, nsCertType, subjectAltName, issuerAltName, subjectKeyIdentifier. Non-decoded extensions are also stored in the same array.

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

2 participants