[nanomsg] anyone use DER encoded certificates or keys?

  • From: "Garrett D'Amore" <garrett@xxxxxxxxxx>
  • To: "nanomsg@xxxxxxxxxxxxx" <nanomsg@xxxxxxxxxxxxx>
  • Date: Tue, 02 Jan 2018 01:38:36 +0000

Right now I have the TLS code in nng supporting both DER and PEM encoded
certs.  PEM is ASCII. whereas DER is binary.

I’d actually like to ditch the DER support for a couple of reasons:

a) it requires me to pass around an extra length
b) it is untested at present (because I don’t use it)
c) supporting both in the same API is awkward
d) it is possible to convert from DER to PEM using command line tools
e) it may make it possible for me to minimize the library further to ditch
ASN.1

Having said that, if someone has strong objections to NNG only supporting
PEM going forward, or knowing uses DER encoded key material frequently, I’d
like to know — if its going to make life simpler for folks if I support DER
than I will continue to do so, otherwise I’d just assume ditch that baggage.

 - Garrett

Other related posts:

  • » [nanomsg] anyone use DER encoded certificates or keys? - Garrett D'Amore