News for hackers. Stuff that matters.
Re:The specs behind the specs – a deep-dive on ASN.1 by jwalton on Thursday January 13, 2022 @05:20PM (#29927753)
In terms of tooling, there’s excellent tooling for ASN.1 for C and C++ and maybe some other languages. There’s excellent tooling for protobufs for a handful of languages too, but they’re different sets, so in practice what languages you want to use would likely come into play.
Re:The specs behind the specs – a deep-dive on ASN.1 by breser on Thursday January 13, 2022 @06:13PM (#29928341)
How excellent the ASN.1 tooling is depends on which subset of ASN.1 you're using. Some of the tooling supports one iteration of ASN.1 or the other. To the degree that the IETF had to write a document on how to deal with this since some of the standards use the older ASN.1 and some use the newer ASN.1: https://tools.ietf.org/id/draft-ietf-pkix-asn1-translation-0...

Interoperability with ASN.1 is very fragile at best.

Re:The specs behind the specs – a deep-dive on ASN.1 by cryptonector on Friday January 14, 2022 @12:58PM (#29937705)
BTW, that I-D is now RFC 6025 [0].

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/asn1
Re:The specs behind the specs – a deep-dive on ASN.1 by cryptonector on Friday January 14, 2022 @12:49PM (#29937573)
We have tons of interoperable PKIX implementations (OpenSSL and derivatives, NSS, OpenJDK's, GnuTLS, wolfSSL, Heimdal, and many many more), and a bunch of interoperable Kerberos implementations (MIT Kerberos, Heimdal, Windows / AD, OpenJDK's, the IBM Java's, GNU Shishi, there's a python implementation).
Re:The specs behind the specs – a deep-dive on ASN.1 by memling on Thursday January 13, 2022 @08:04PM (#29929280)
> In terms of tooling, there’s excellent tooling for ASN.1 for C and C++ and maybe some other languages. There’s excellent tooling for protobufs for a handful of languages too, but they’re different sets, so in practice what languages you want to use would likely come into play.

In 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).

Re:The specs behind the specs – a deep-dive on ASN.1 by dikei on Thursday January 13, 2022 @08:33PM (#29929510)
I concur. Furthermore, the pricing if often opaque: you know the tools are expensive when they always want you to contact sales for a quote.