Skip to content

Instantly share code, notes, and snippets.

@Hexa
Created March 2, 2011 14:49
Show Gist options
  • Save Hexa/851040 to your computer and use it in GitHub Desktop.
Save Hexa/851040 to your computer and use it in GitHub Desktop.
public_key:der_decode('CertificateList', Der).
{'CertificateList',
{'TBSCertList',v2,
{'AlgorithmIdentifier',{1,2,840,113549,1,1,5},<<5,0>>},
{rdnSequence,
[[{'AttributeTypeAndValue',{2,5,4,6},<<19,1,67>>}],
[{'AttributeTypeAndValue',{2,5,4,8},<<12,2,83,84>>}],
[{'AttributeTypeAndValue',{2,5,4,3},<<12,2,67,78>>}]]},
{utcTime,"101123233530Z"},
{utcTime,"101130233530Z"},
[{'TBSCertList_revokedCertificates_SEQOF',28,
{utcTime,"101123233530Z"},
asn1_NOVALUE},
{'TBSCertList_revokedCertificates_SEQOF',29,
{utcTime,"101123233530Z"},
asn1_NOVALUE}],
[{'Extension',{2,5,29,20},false,[2,1,2]},
{'Extension',
{2,5,29,35},
false,
[48,22,128,20,80,186,45,173,250,0,233,39,14|...]}]},
{'AlgorithmIdentifier',{1,2,840,113549,1,1,5},<<5,0>>},
{0,
<<8,193,50,13,79,208,123,234,116,27,107,13,170,185,149,
91,63,71,28,32,27,115,198,...>>}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment