21.03.2013 Views

Problem - Kevin Tafuro

Problem - Kevin Tafuro

Problem - Kevin Tafuro

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

if (cert && (uri = get_distribution_point(cert)) != 0) return uri;<br />

if (issuer && (uri = get_distribution_point(issuer)) != 0) return uri;<br />

}<br />

/* Get the fingerprint of the cert's issuer, and look it up in a table */<br />

if (issuer) {<br />

if (!(cacert = spc_lookup_cacert(issuer))) return 0;<br />

return (cacert->crl_uri ? strdup(cacert->crl_uri) : 0);<br />

}<br />

return 0;<br />

}<br />

If neither the certificate we are checking nor the certificate’s issuing certificate contains<br />

a cRLDistributionPoints extension that we can use, we will fall back to looking<br />

up the issuing certificate’s fingerprint in a table that we have built from the information<br />

presented in Recipe 10.3:<br />

static spc_cacert_t lookup_table[ ] = {<br />

{ "Equifax Secure Certificate Authority",<br />

"\x67\xcb\x9d\xc0\x13\x24\x8a\x82\x9b\xb2\x17\x1e\xd1\x1b\xec\xd4", 16,<br />

"http://crl.geotrust.com/crls/secureca.crl",<br />

},<br />

{ "Equifax Secure Global eBusiness CA-1",<br />

"\x8f\x5d\x77\x06\x27\xc4\x98\x3c\x5b\x93\x78\xe7\xd7\x7d\x9b\xcc", 16,<br />

"http://crl.geotrust.com/crls/globalca1.crl",<br />

},<br />

{ "Equifax Secure eBusiness CA-1",<br />

"\x64\x9c\xef\x2e\x44\xfc\xc6\x8f\x52\x07\xd0\x51\x73\x8f\xcb\x3d", 16,<br />

"http://crl.geotrust.com/crls/ebizca1.crl",<br />

},<br />

{ "Equifax Secure eBusiness CA-2",<br />

"\xaa\xbf\xbf\x64\x97\xda\x98\x1d\x6f\xc6\x08\x3a\x95\x70\x33\xca", 16,<br />

"http://crl.geotrust.com/crls/ebiz.crl",<br />

},<br />

{ "RSA Data Security Secure Server CA (VeriSign)",<br />

"\x74\x7b\x82\x03\x43\xf0\x00\x9e\x6b\xb3\xec\x47\xbf\x85\xa5\x93", 16,<br />

"http://crl.verisign.com/RSASecureServer.crl", "http://ocsp.verisign.com/",<br />

},<br />

{ "Thawte Server CA",<br />

"\xc5\x70\xc4\xa2\xed\x53\x78\x0c\xc8\x10\x53\x81\x64\xcb\xd0\x1d", 16,<br />

"https://www.thawte.com/cgi/lifecycle/getcrl.crl?skeyid=%07%15%28mps%AA"<br />

"%B2%8A%7C%0F%86%CE8%93%008%05%8A%B1",<br />

},<br />

{ "TrustCenter Class 1 CA",<br />

"\x8d\x26\xff\x2f\x31\x6d\x59x\29\xdd\xe6\x36\xa7\xe2\xce\x64\x25", 16,<br />

"https://www.trustcenter.de:443/cgi-bin/CRL.cgi/TC_Class1.crl?Page=GetCrl"<br />

"&crl=2",<br />

},<br />

{ "TrustCenter Class 2 CA",<br />

"\xb8\x16\x33\x4c\x4c\x4c\xf2\xd8\xd3\x4d\x06\xb4\xa6\x58\x40\x03", 16,<br />

"https://www.trustcenter.de:443/cgi-bin/CRL.cgi/TC_Class2.crl?Page=GetCrl"<br />

"&crl=3",<br />

},<br />

{ "TrustCenter Class 3 CA",<br />

"\x5f\x94\x4a\x73\x22\xb8\xf7\xd1\x31\xec\x59\x39\xf7\x8e\xfe\x6e", 16,<br />

Obtaining Certificate Revocation Lists with OpenSSL | 549<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!