Re: usercertificate attribute fingerprint (possibly OT)
[email protected] (Natxo Asenjo) Sun, 17 May 2015 23:39:16 +0200
| Newsgroups | perl.ldap |
|---|---|
| Message-ID | <CAHBEJzU+7y9yM0WRi848=pJYAcWbXEQXbVycFHRHLXWijH7Bpg@mail.gmail.com> |
--001a1135f952ba496205164de896 Content-Type: text/plain; charset=UTF-8 On Sun, May 17, 2015 at 9:42 PM, Chris Ridd <[email protected]> wrote: > > > So this works, but I see no method to get the fingerprint. Is there a > way to get it from the info I get from ldap? > > This code uses Net::SSLeay to extract a fingerprint from something like > your $cert. > > > http://cpansearch.perl.org/src/MIKEM/Net-SSLeay-1.46/examples/x509_cert_details.pl > > Hi, thanks for your answer.. I ended up using Digest::SHA1 on $cert and massaging the digest, I got the sha1 fingerprints like that. -- Groeten, natxo --001a1135f952ba496205164de896 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">= On Sun, May 17, 2015 at 9:42 PM, Chris Ridd <span dir=3D"ltr"><<a href= =3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>></= span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8e= x;border-left:1px #ccc solid;padding-left:1ex"><div class=3D"HOEnZb"><div c= lass=3D"h5"><br> > So this works, but I see no method to get the fingerprint. Is there a = way to get it from the info I get from ldap?<br> <br> </div></div>This code uses Net::SSLeay to extract a fingerprint from someth= ing like your $cert.<br> <br> <a href=3D"http://cpansearch.perl.org/src/MIKEM/Net-SSLeay-1.46/examples/x5= 09_cert_details.pl" target=3D"_blank">http://cpansearch.perl.org/src/MIKEM/= Net-SSLeay-1.46/examples/x509_cert_details.pl</a><br> <span class=3D"HOEnZb"></span><br></blockquote></div><br></div><div class= =3D"gmail_extra">Hi, thanks for your answer..<br><br></div><div class=3D"gm= ail_extra">I ended up using Digest::SHA1 on $cert and massaging=C2=A0 the d= igest, I got the sha1 fingerprints like that.<br clear=3D"all"></div><div c= lass=3D"gmail_extra"><br><br><div class=3D"gmail_signature">--<br>Groeten,<= br>natxo</div> </div></div> --001a1135f952ba496205164de896--