[erlang-questions] Decoding certificates using public_key:pkix_decode_cert/2 (and a bug in public_key_SUITE?)

Andrew Thompson <>
Fri Feb 21 17:30:34 CET 2014


On Fri, Feb 21, 2014 at 04:14:07PM +0000, Roger Lipscombe wrote:
> 0. (the most important) how do I get the CN out of a certificate?

This is how I do it (and by extension how Riak does it):

https://github.com/Vagabond/otp/compare/erlang:maint...adt-crl-fixes#diff-d6743cc877f70398dfa7d11d25033c20R502

I also was unable to find a better way to do it.

Andrew


More information about the erlang-questions mailing list