Closed 3goats closed 8 years ago
As for key usage, jsrsasign already has methods: http://kjur.github.io/jsrsasign/api/symbols/X509.html#.getExtKeyUsageString http://kjur.github.io/jsrsasign/api/symbols/X509.html#.getExtKeyUsageBin
For basic constraints, I've add a method for it in the latest version: http://kjur.github.io/jsrsasign/api/symbols/X509.html#.getExtBasicConstraints
For certificate dump, how about using ASN.1 dump? http://kjur.github.io/jsrsasign/api/symbols/ASN1HEX.html#.dump
Thanks for this.
For certificate dump, how about using ASN.1 dump?
Yes this would be a start, ideally I would like to dump all of certificate meta data to a data structure for indexing if possible.
Sent from my iPhone
On 14 Apr 2016, at 12:30, Kenji Urushima notifications@github.com wrote:
For certificate dump, how about using ASN.1 dump?
I've been experiencing with the X.509 class and was wondering if there's simple way of getting the
basic constraints
(e.g. Subject Type=CA, Path Length Constraint=0) andkey usage
information (e.g. Certificate Signing, Off-line CRL Signing, CRL Signin...) ?I need the oids to translated rather than just the list of OIDs e.g.
Is there anything like an X.509 dump capability that dumps out all of the values similar to using
openssl x509 -in cert.cer -text -noout
Ultimatly I need to parse the entire cert and get to this level of detail: