by jwalton · 4y ago · 0 comments
Interoperability with ASN.1 is very fragile at best.
There's also RFC 5912 [1], which adds x.681/x.682/x.683 constraints to PKIX modules. I use this to great effect in Heimdal[2]. One function call can decode everything in a certificate, and a second can pretty print it in JSON; one command can pretty-print a certificate in all its glory in JSON.
[0] https://datatracker.ietf.org/doc/html/rfc6025
[1] https://datatracker.ietf.org/doc/html/rfc5912
[2] https://github.com/heimdal/heimdal
https://github.com/heimdal/heimdal/tree/master/lib/asn1In my experience, tooling is actually very good for most commonly-used languages, including C/C++, C#, Java, Python, and maybe even Go. And, of course, erlang. The real challenge is, I think, that you cannot find good free tooling, and the barrier to entry for Joe Developer is fairly high (in the thousands of dollars).