You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to migrate more of my code over to asn1-schema but I'm stumped about how to take an extension out of an x.509 Certificate instance and then parse it through an extension schema.
After running my leaf cert through AsnParser.parse(leafCertBuffer, Certificate), I'm able to view the expected extensions:
What I want to do is then take that '2.5.29.19' (BasicConstraints) extension and parse it so I can more easily access its cA attribute. I tried this but of course the types didn't match:
if(ext.extnID===id_ce_basicConstraints){console.log(AsnParser.fromASN(ext,BasicConstraints));// No good, ext isn't a Buffer}
Is there a clean way to further parse something that's within a parsed asn.1 schema? Thank you in advance for shining a light on this more advanced use case 😄
The text was updated successfully, but these errors were encountered:
I'm trying to migrate more of my code over to asn1-schema but I'm stumped about how to take an extension out of an x.509
Certificate
instance and then parse it through an extension schema.After running my leaf cert through
AsnParser.parse(leafCertBuffer, Certificate)
, I'm able to view the expected extensions:What I want to do is then take that
'2.5.29.19'
(BasicConstraints) extension and parse it so I can more easily access itscA
attribute. I tried this but of course the types didn't match:Is there a clean way to further parse something that's within a parsed asn.1 schema? Thank you in advance for shining a light on this more advanced use case 😄
The text was updated successfully, but these errors were encountered: