{"id":208,"date":"2010-03-04T21:48:58","date_gmt":"2010-03-04T13:48:58","guid":{"rendered":"http:\/\/blog.nuface.tw\/?p=208"},"modified":"2010-03-07T09:46:19","modified_gmt":"2010-03-07T01:46:19","slug":"x-509-%e7%9a%84%e5%9f%ba%e7%a4%8e%e9%97%9c%e5%bf%b5","status":"publish","type":"post","link":"https:\/\/blog.nuface.tw\/?p=208","title":{"rendered":"X.509 \u7684\u57fa\u790e\u95dc\u5ff5"},"content":{"rendered":"<p><strong><em>X.509 \u662f\u4ec0\u9ebc\u5462\uff1f<\/em><\/strong><\/p>\n<p>\u5728\u5bc6\u78bc\u5b78\u4e2d\uff0c\u5b83\u662f\u4e00\u7a2e\u516c\u958b\u91d1\u9470(PKI) \u7684\u96fb\u4fe1\u901a\u8a0a\u6a19\u6e96\u3002<br \/>\n\u9019\u500b\u516c\u958b\u91d1\u9470\u7684\u6280\u8853\uff0c\u61c9\u7528\u4f86\u505a\u55ae\u4e00\u767b\u5165(SSO)\u53ca\u6b0a\u9650\u7ba1\u7406\u67b6\u69cb(PMI) \u7528\u9014\u3002<\/p>\n<p>X.509 \u7684\u6a19\u6e96\u8a73\u7d30\u898f\u7bc4\u4ee5\u4e0b\u4e8b\u9805<br \/>\n1. \u516c\u958b\u6191\u8b49\u7684\u6a19\u6e96\u683c\u5f0f<br \/>\n2. \u4f5c\u5ee2\u6191\u8b49\u7684\u6e05\u55ae<br \/>\n3. \u6191\u8b49\u7684\u5c6c\u6027<br \/>\n4. \u8a8d\u8b49\u8def\u5f91\u6279\u51c6\u7684\u6f14\u7b97\u6cd5<\/p>\n<p><!--more--><\/p>\n<p><strong><em>X.509 \u7684\u6b77\u53f2\u8207\u7528\u9014<\/em><\/strong><\/p>\n<p>X.509 \u8d77\u59cb\u65bc1998\u5e747\u67083\u65e5\uff0c\u662f\u7531\u570b\u969b\u96fb\u4fe1\u806f\u76df\uff08ITU-T\uff09\u5236\u5b9a\u7684\u6578\u4f4d\u6191\u8b49\u6a19\u6e96\u3002<\/p>\n<p>\u70ba\u4e86\u63d0\u4f9b\u516c\u7528\u7db2\u7d61\u7528\u6236\u76ee\u9304\u8cc7\u8a0a\u670d\u52d9\uff0c ITU \u65bc 1988 \u5e74\u5236\u5b9a\u4e86 X.500 \u7cfb\u5217\u6a19\u6e96\u3002\u5176\u4e2d X.500 \u548c X.509 \u662f\u5b89\u5168\u8a8d\u8b49\u7cfb\u7d71\u7684\u6838\u5fc3\uff0c X.500 \u5b9a\u7fa9\u4e86\u4e00\u7a2e\u5340\u5225\u547d\u540d\u898f\u5247\uff0c\u4ee5\u547d\u540d\u6a39\u4f86\u78ba\u4fdd\u7528\u6236\u540d\u7a31\u7684\u552f\u4e00\u6027\uff1b X.509 \u5247\u70ba X.500 \u7528\u6236\u540d\u7a31\u63d0\u4f9b\u4e86\u901a\u4fe1\u5be6\u9ad4\u9452\u5225\u6a5f\u5236\uff0c\u4e26\u898f\u5b9a\u4e86\u5be6\u9ad4\u9452\u5225\u904e\u7a0b\u4e2d\u5ee3\u6cdb\u9069\u7528\u7684\u6191\u8b49\u8a9e\u6cd5\u548c\u8cc7\u6599\u4ecb\u9762\uff0c X.509 \u7a31\u4e4b\u70ba\u6191\u8b49\u3002<\/p>\n<p>X.509 \u7684\u76ee\u7684\u70ba\uff0c\u8b49\u5be6\u9019\u500b\u5df2\u7c3d\u767c\u6191\u8b49\uff0c\u78ba\u5be6\u70ba\u6191\u8b49\u4e0a\u5ba3\u7a31\u7684\u90a3\u500b\u4eba\u6240\u767c\u884c\u7684\u6191\u8b49\u3002<br \/>\n\u5047\u8a2d\u7684\u524d\u984c\u70ba\uff0c\u5728\u7c3d\u767c\u6191\u8b49\u6642\uff0c\u6709\u4e00\u500b\u7cbe\u78ba\u7684\u5b98\u65b9\u7c3d\u8b49\u55ae\u4f4d\u7b49\u7d1a\u9ad4\u7cfb(CAs)\u3002<br \/>\n\u6240\u4ee5\u5728X.509\u4e2d\u6bcf\u4e00\u500b\u5408\u683c\u7684\u6191\u8b49\uff0c\u90fd\u6703\u8a18\u9304\u7c3d\u8b49\u55ae\u4f4d\u8cc7\u8a0a\uff0c\u5305\u542b\u4e2d\u9593\u7684\u8a8d\u8b49\u4e2d\u5fc3\u53ca\u6700\u9ad8\u7684\u8a8d\u8b49\u4e2d\u5fc3\u3002<\/p>\n<p>\u7576\u7a0b\u5f0f\u5728\u8a8d\u8b49\u6191\u8b49\u6642\uff0c\u4e0d\u4e00\u5b9a\u9700\u8981\u5148\u8a8d\u8b58\u9019\u500b\u6191\u8b49\uff0c\u53ea\u8981\u5728\u9019\u500b\u6191\u8b49\u4e0a\uff0c\u6709\u81ea\u5df1\u8a8d\u5f97\u7684\u8a8d\u8b49\u4e2d\u5fc3\u4fdd\u8b49\u904e\uff0c\u5c31\u6703\u8a8d\u5b9a\u9019\u500b\u6191\u8b49\u6c92\u6709\u554f\u984c\u3002\u53cd\u4e4b\uff0c\u5728\u6191\u8b49\u4e0a\uff0c\u6c92\u6709\u81ea\u5df1\u8a8d\u8b58\u7684\u8a8d\u8b49\u4e2d\u5fc3\u7c3d\u8b49\u904e\uff0c\u5f88\u53ef\u80fd\u9019\u500b\u6191\u8b49\u662f\u6709\u554f\u984c\u7684\uff0c\u7a0b\u5f0f\u6703\u8b66\u544a\u6191\u8b49\u7121\u6548\u3002<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/03\/x509.gif\" alt=\"X.509\u67b6\u69cb\" \/><\/p>\n<p>\u9019\u8207\u53e6\u4e00\u7a2e\u8a8d\u8b49\u6a21\u5f0f\uff0d\u4fe1\u4efb\u7db2\u7d61 (PGP) \u4e0d\u540c\u3002\u5728PGP \u7684\u67b6\u69cb\u4e0b\uff0c\u6c92\u6709PKIX \u7684\u91d1\u5b57\u5854\u5f0f\u7684\u8a8d\u8b49\u4e2d\u5fc3\uff0c\u800c\u662f\u6709\u9ede\u50cf\u4eba\u969b\u95dc\u4fc2\u7db2\u7d61\u3002\u5c31\u662f\uff0c\u6211\u8a8d\u8b58\u4f60\uff0c\u800c\u4f60\u8a8d\u8b58\u4ed6\uff0c\u5982\u679c\u6211\u78b0\u5230\u4ed6\u7684\u6191\u8b49\uff0c\u6211\u5c31\u8acb\u4f60\u4f86\u8a8d\u4ed6\u3002<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/03\/pgp.gif\" alt=\"PGP \u4fe1\u4efb\u7db2\" \/><\/p>\n<p>\u5728X.509\u7b2c3\u7248\u6642\uff0c\u52a0\u5165\u4e86\u985e\u4f3c\u6a4b\u63a5\u62d3\u64b2\u53ca RFC 4158 \u5354\u5b9a\u7684\u652f\u63f4\u3002\u53ef\u4ee5\u4f7f\u7528\u5728 P-to-P \uff0c OpenPGP-like \u4fe1\u4efb\u7db2\uff0c\u4f46\u57282004\u5e74\u4ee5\u524d\u5f88\u5c11\u6709\u4eba\u4f7f\u7528\u3002<\/p>\n<p>X.509 \u5c0d\u65bc\u7db2\u8def\u5b89\u5168\u7684\u5be6\u4f5c\uff0c\u6bd4\u8f03\u9069\u5408\u4e5f\u6bd4\u8f03\u6709\u5f48\u6027\u3002\u6240\u4ee5X.500 \u5b9a\u7fa9\u7684\u67b6\u69cb\u6a19\u6e96\uff0c\u57fa\u672c\u4e0a\u5b8c\u5168\u6c92\u6709\u88ab\u5be6\u4f5c\u904e\u3002<\/p>\n<p>\u800c\u76ee\u524dX.509 \u8a8d\u8b49\u7684\u6a21\u5f0f(PKIX)\uff0c\u901a\u5e38\u53c3\u8003IETF&#8217;s PKIX \u7684\u8a8d\u8b49\u53ca\u5b9a\u7fa9\u5728RFC 5280\u4e2d\u7684X.509 v3\u8a8d\u8b49\u6a19\u6e96\u3002<\/p>\n<p><strong><em>\u8ac7\u4e00\u8ac7\u6191\u8b49<\/em><\/strong><\/p>\n<p>\u5728X.509\u7684\u7cfb\u7d71\u4e2d\uff0c\u8a8d\u8b49\u4e2d\u5fc3\u7c3d\u767c\u4e00\u500b\u6191\u8b49\u6642\uff0c\u6703\u5c07 &#8220;\u7d44\u7e54\u540d\u7a31&#8221; \u6216 &#8220;\u90f5\u4ef6\u5730\u5740&#8221; \u6216 &#8220;\u7db2\u57df\u540d\u7a31&#8221; \u540c\u6642\u7d81\u5b9a\u5165 &#8220;\u516c\u958b\u91d1\u9470&#8221; \u4e2d\u3002<\/p>\n<p>\u5728\u7d44\u7e54\u4e2d\u4fe1\u4efb\u7684 &#8220;\u6700\u9ad8\u8a8d\u8b49\u4e2d\u5fc3&#8221;  (Root CA)\uff0c\u53ef\u4ee5\u767c\u914d\u7d66\u7d44\u7e54\u4e2d\u7684\u6240\u6709\u54e1\u5de5\u4f7f\u7528\u3002\u9019\u6a23\u4e00\u4f86\uff0c\u6574\u500b\u7d44\u7e54\u5c31\u53ef\u4ee5\u4f7f\u7528\uff0c\u516c\u53f8\u81ea\u5df1\u5167\u90e8\u7684  &#8220;\u516c\u958b\u91d1\u9470&#8221;  (PKI) \u7cfb\u7d71\u3002<\/p>\n<p>\u7576\u4f7f\u7528 Internet Explorer, Netscape\/Mozilla, Opera, Safari \u53ca Chrome \u700f\u89bd\u5668\u6642\uff0c\u5c07\u9019\u500b\u7d44\u7e54\u5167\u4fe1\u4efb\u7684 Root CA \u9810\u5148\u52a0\u5165\u700f\u89bd\u5668\u4e2d\uff0c\u5728\u4f7f\u7528SSL\u50b3\u8f38\u6642\uff0c\u7576\u78b0\u5230\u7531\u9019\u500bRoot CA\u6216\u5176\u4e0bCA \u6240\u7c3d\u767c\u7684\u6191\u8b49\u6642\uff0c\u5373\u53ef\u901a\u904e\u700f\u89bd\u5668\u7684\u8a8d\u8b49\u3002<\/p>\n<p>X.509 \u540c\u6642\u4e5f\u5305\u542b\u4e86\u5728PKI\u7cfb\u7d71\u4e2d\uff0c\u5e38\u88ab\u5ffd\u7565\u7684\u5ee2\u6b62\u6191\u8b49\u5217\u8868(CRL)\u7684\u6a19\u6e96\u3002<\/p>\n<p>\u5728IETF-\u8a8d\u8b49\u5354\u5b9a\uff0c\u8a8d\u8b49\u6191\u8b49\u6709\u6548\u6027\u6642\uff0c\u53ef\u4ee5\u4f7f\u7528\u7dda\u4e0a\u6191\u8b49\u5354\u5b9a(OCSP)\u3002\u5728Windows Vista\u6216\u66f4\u9ad8\u7684\u7248\u672c\uff0cFirefox 3 \u700f\u89bd\u5668<br \/>\n\u9810\u8a2d\u4e5f\u53ef\u4ee5\u652f\u63f4OCSP\u7684\u8a8d\u8b49\u4f5c\u696d\u3002<\/p>\n<p><strong><em>\u6191\u8b49\u7684\u7d50\u69cb<\/em><\/strong><\/p>\n<p>\u5728X.509 v3\u7248\u7684\u6578\u4f4d\u7d50\u69cb\u5982\u4e0b\uff1a<\/p>\n<p>\u6191\u8b49<br \/>\n\uff0d\u7248\u672c<br \/>\n\uff0d\u5e8f\u865f<br \/>\n\uff0d\u6191\u8b49\u7c3d\u7f72\u6f14\u7b97\u6cd5<br \/>\n\uff0d\u7c3d\u767c\u8005<br \/>\n\uff0d\u6709\u6548<br \/>\n\uff0d\uff0d\u4e0d\u65e9\u65bc<br \/>\n\uff0d\uff0d\u4e0d\u665a\u65bc<br \/>\n\uff0d\u4e3b\u8981<br \/>\n\uff0d\uff0d\u4e3b\u516c\u958b\u91d1\u9470\u6f14\u7b97\u6cd5<br \/>\n\uff0d\uff0d\u4e3b\u516c\u958b\u91d1\u9470(Public Key)<br \/>\n\uff0d\u7c3d\u767c\u8005\u552f\u4e00\u8b58\u5225(Optional)<br \/>\n\uff0d\u64f4\u5145\u5957\u4ef6<br \/>\n\u6191\u8b49\u7c3d\u7f72\u6f14\u7b97\u6cd5<br \/>\n\u6191\u8b49\u7c3d\u7ae0\u503c<\/p>\n<p>&#8220;\u7c3d\u767c\u8005&#8221; \u53ca &#8220;\u7c3d\u767c\u8005\u552f\u4e00\u8b58\u5225&#8221; \u5b9a\u7fa9\u65bcX.509 v2\u7248, \u64f4\u5145\u5957\u4ef6 \u5b9a\u7fa9\u65bcv3\u7248\uff0c\u5728RFC 2459\u7684\u898f\u7bc4\u4e2d\u540c\u6642\u5b9a\u7fa9\uff0c\u5728\u6bcf\u4e00\u500b\u7279\u5b9a\u7684CA\u4e2d\uff0c\u5e8f\u865f\u5fc5\u9808\u662f\u4e00\u500b\u552f\u4e00\u7684\u503c\u3002<\/p>\n<p><strong><em>\u5e38\u898b\u7684\u6191\u8b49\u526f\u6a94\u540d<\/em><\/strong><\/p>\n<p>\u5728X.509\u4e2d\u7684\u5e38\u898b\u7684\u6191\u8b49\u526f\u6a94\u540d\u5982\u4e0b\uff1a<\/p>\n<p>.pem -(Privacy Enhanced Mail)<\/p>\n<blockquote><p>\n\u4f7f\u7528Base64\u7de8\u78bc\u904e\u7684 DER\u6191\u8b49,\u4f7f\u7528 &#8220;&#8212;&#8211;BEGIN CERTIFICATE&#8212;&#8211;&#8221; \u958b\u59cb\uff0c\u53ca &#8220;&#8212;&#8211;END CERTIFICATE&#8212;&#8211;&#8221;  \u4f5c\u70ba\u7d50\u675f\u3002\n<\/p><\/blockquote>\n<p>.cer, .crt, .der<\/p>\n<blockquote><p>\n\u4f7f\u7528\uff12\u9032\u4f4d\u65b9\u5f0f\u7684DER\u505a\u7de8\u78bc\uff0c\u4f46Base64\u7684\u7de8\u78bc\u6191\u8b49\uff0c\u6bd4\u8f03\u5e38\u7528\u3002\n<\/p><\/blockquote>\n<p>.p7b, .p7c<\/p>\n<blockquote><p>\nPKCS#7\u7c3d\u7f72\u904e\u7684\u6191\u8b49\u7d50\u69cb\uff0c\u4e0d\u5305\u542b\u8cc7\u6599\u3002\n<\/p><\/blockquote>\n<p>.p12<\/p>\n<blockquote><p>\nPKCS#12\u5305\u542b\u6191\u8b49\u7684\u516c\u9470\u53ca\u79c1\u9470 (\u540c\u6642\u6709\u5bc6\u78bc\u4fdd\u8b77)\u3002\n<\/p><\/blockquote>\n<p>.pfx<\/p>\n<blockquote><p>\nPFX, PKCS#12 \u7684\u524d\u8eab (\u901a\u5e38\u7531IIS \u4f7f\u7528PKCS#12\u7684\u7d50\u69cb\u7522\u751f\u51fa\u4f86\u7684\u8cc7\u6599)\u3002\n<\/p><\/blockquote>\n<p><strong><em>X.509 \u6191\u8b49\u6a23\u672c<\/em><\/strong><br \/>\n\u4ee5\u4e0b\u9019\u500b\u6a23\u672c\u70ba\u4f7f\u7528OpenSSL \uff0c \u70bawww.freesoft.org \u4ee5 X.509 \u6a19\u6e96\uff0c\u6240\u7c3d\u767c\u7684\u6191\u8b49\u3002\u9019\u500b\u6191\u8b49\u7684\u5927\u5c0f\u5927\u7d041KB \uff0c \u7c3d\u7f72\u8005\u70ba  Thawte (\u8a18\u9304\u5728Issuer \u6b04\u4f4d)\u3002<\/p>\n<p>\u5728 subject \u6b04\u4f4d\u5305\u542b\u4e86\u8a31\u591a\u500b\u4eba\u660e\u7d30\u8cc7\u6599\uff0c \u5176\u4e2d\u6bd4\u8f03\u91cd\u8981\u7684\u8cc7\u6599\u662f common name (CN)\uff0c\u9019\u500b\u90e8\u4efd\u5fc5\u9808\u8ddf\u8981\u8a8d\u8b49\u7684 host \u4e00\u81f4\u3002<\/p>\n<p>\u540c\u6642\u5305\u542b RSA \u516c\u9470\uff0c\u4f7f\u7528MD5\u6f14\u7b97\u6cd5\uff0c\u5fc5\u9808\u4f7f\u7528 Thawte&#8217;s RSA \u7684\u79c1\u9470\u505a\u89e3\u78bc\u3002<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/03\/Sample-X.509-certificates.gif\" alt=\"Sample X.509 certificates\" \/><\/p>\n<p>\u8981\u9a57\u8b49\u9019\u500b\u6191\u8b49\uff0c\u5fc5\u9808\u4f7f\u7528\u7b2c2\u500b\u6191\u8b49\uff0c\u800c\u7b2c2\u500b\u6191\u8b49\u7684\u767c\u884c\u8005\u5fc5\u9808\u8ddf\u8981\u88ab\u9a57\u8b49\u7684\u6191\u8b49\u4e00\u81f4(Thawte Server CA)\u3002<\/p>\n<p>\u9996\u5148\uff0c\u5fc5\u9808\u78ba\u8a8d\u7b2c2\u500b\u6191\u8b49\u662fCA \u985e\u5225\uff0c\u540c\u6642\u9019\u500b\u6191\u8b49\u53ef\u4ee5\u518d\u7c3d\u767c\u51fa\u5176\u5b83\u7684\u6191\u8b49\u3002<\/p>\n<p>\u7531\u9019\u500b\u6191\u8b49\u4e2d\u7684 extension \u90e8\u4efd(X.509 V3)\u53bb\u505a\u9019\u500b\u6aa2\u67e5\u3002<\/p>\n<p>\u5982\u679c\u6c92\u6709\u554f\u984c\uff0c\u5373\u53ef\u4f7f\u7528\u9019\u500b\u6191\u8b49\u88cf\u7684RSA \u7684\u516c\u9470\uff0c\u53bb\u9032\u884c\u89e3\u78bc\u7684\u4f5c\u696d\uff0c\u53d6\u5f97\u7b2c1\u500b\u6191\u8b49\u4e2d\u7684MD5 hash \u8cc7\u6599\uff0c\u518d\u8207\u7b2c2\u500b\u6191\u8b49\u4e2d\u7684 MD5 hash\u8cc7\u6599\u505a\u6bd4\u5c0d\uff0c\u5373\u53ef\u5b8c\u6210\u6191\u8b49\u7684\u9a57\u8b49\u3002<\/p>\n<p>CA \u6191\u8b49\u6a23\u672c\u5982\u4e0b:<br \/>\n<img decoding=\"async\" src=\"http:\/\/blog.nuface.tw\/wp-content\/uploads\/2010\/03\/Sample-X.509-CA-certificates.gif\" alt=\"Sample X.509 CA certificates\" \/><\/p>\n<p>\u9019\u662f\u4e00\u500b\u81ea\u5df2\u7c3d\u7f72\u81ea\u5df1\u7684\u6a23\u672c\uff0c\u6240\u4ee5 issuer \u53ca subject \u662f\u4e00\u6a23\u7684\u3002<\/p>\n<p>\u5728X.509\u67b6\u69cb\u4e0b\uff0c\u7121\u6cd5\u53bb\u6aa2\u9a57\u9019\u500b\uff0c\u81ea\u5df1\u53bb\u7c3d\u7f72\u81ea\u5df1\u7684\u6700\u9ad8Root CA (\u91d1\u5b57\u5854\u7684\u9802\u7aef\uff0c\u6c92\u6709\u6bd4\u5b83\u66f4\u9ad8\u7684\u4eba\u53ef\u4ee5\u7c3d\u7f72\u5b83)\u3002\u53ea\u80fd\u9760\u4f7f\u7528\u8005\u624b\u52d5\u9810\u5148\u5728\u700f\u89bd\u5668\uff0c\u4e2d\u52a0\u5165\u81ea\u5df1\u4fe1\u4efb\u7684Root CA\u3002<\/p>\n<p>Thawte \u662f\u4e00\u500b Microsoft \u53ca Netscape\u90fd\u4fe1\u4efb\u7684Root CA\u3002\u6240\u4ee5IE \u53caFireFox \u5728\u5b89\u88dd\u8edf\u9ad4\u6642\uff0c\u5df2\u7d93\u6703\u9810\u5148\u5728\u700f\u89bd\u5668\u52a0\u5165\u9019\u500bRoot CA\u3002<\/p>\n<p>\u9577\u4e45\u4ee5\u4f86\uff0cX.509\u7684\u67b6\u69cb\u4e0b\uff0c\u9019\u4e9b\u5168\u7403\u4fe1\u4efb\u7684Root CA \uff0c\u5176\u6191\u8b49\u79c1\u9470\u8207\u6240\u7c3d\u7f72\u51fa\u7684\u76f8\u95dc\u6191\u8b49\u4e4b\u91d1\u9470\uff0c\u5747\u53ef\u5b8c\u6574\u5339\u914d\uff0c\u4ee5\u4fdd\u8b77\u6240\u7c3d\u7f72\u51fa\u7684\u6191\u8b49\u3002<\/p>\n<p><strong><em>\u5b89\u5168\u6027\u8b70\u984c<\/em><\/strong><\/p>\n<p>2005 \u5e74 Arjen Lenstra \u53ca Benne de Weger \u4f7f\u7528 MD5 hash \u6f14\u7b97\u6cd5\uff0c\u89e3\u6c7a\u4e86\u9019\u500b\u8b70\u984c\uff1a<br \/>\n&#8220;\u5982\u4f55\u4f7f\u7528hash \u6f14\u7b97\u6cd5,\u5efa\u69cb2\u500b\u64c1\u6709\u4e00\u81f4\u6578\u4f4d\u7c3d\u7ae0\u7684X.509\u6191\u8b49, \u540c\u66422\u500b\u6191\u8b49\u53c8\u53ea\u5b58\u5728\u516c\u9470\u9593\u7684\u5dee\u7570?&#8221; \u3002<\/p>\n<p>2008 \u5e74 Alexander Sotirov \u53ca Marc Stevens \u5728 &#8220;Chaos Communication Congress&#8221; \u6f14\u793a\u4e86\u4e00\u500b\u7684\u653b\u64ca\u7684\u7bc4\u4f8b\u3002\u5728MD5 hash \u7684\u67b6\u69cb\u4e0b\uff0c\u5efa\u7acb\u4e86\u4e00\u500b\u5047\u7684CA \u3002\u540c\u6642\u7528\u9019\u500bCA \u7c3d\u7f72\u6191\u8b49\uff0c\u800c\u9019\u500b\u5047CA\u7c3d\u7f72\u7684\u6191\u8b49\u53ef\u4ee5\u88ab\u5927\u90e8\u4efd\u7684\u700f\u89bd\u5668\u63a5\u53d7\u3002<\/p>\n<p>\u5728X.509 \u6191\u8b49\u4e2d\u4f7f\u7528SHA-1 hash \u6f14\u7b97\u6cd5\uff0c\u662f\u6700\u8fd1\u516c\u8a8d\u6bd4\u8f03\u5b89\u5168\u7684\u65b9\u5f0f\u3002<br \/>\n2009\u5e744\u6708 Macquarie \u5927\u5b78\u7684\u7814\u7a76\u4eba\u54e1\uff0c\u5728  Eurocrypt Conference \u5c55\u793a\u4e86 &#8220;Automatic Differential Path Searching for SHA-1 &#8221;  \u6280\u8853\u3002 \u8b93\u8207\u6703\u7814\u7a76\u5b78\u8005\uff0c\u78ba\u4fe1SHA-1 hash \u6f14\u7b97\u6cd5\u7684\u52a0\u5bc6\u6a21\u5f0f\uff0c\u53ef\u5927\u5e45\u63d0\u5347\u6191\u8b49\u7684\u5b89\u5168\u6027\u3002<\/p>\n<blockquote><p>\n\u53e6\u5916\uff0cX.509 \u4fdd\u8b49\u7684\u662f\uff0c\u9019\u500b\u6191\u8b49\u7684\u78ba\u662f\uff0c\u6191\u8b49\u4e0a\u6240\u8aaa\u7684 &#8220;\u90a3\u500b\u4eba&#8221; \u6240\u767c\u3002 \u4f60\u6240\u63d0\u4f9b\u7684\u6a5f\u5bc6\u8cc7\u6599\uff0c\u5982\u4fe1\u7528\u5361\u8cc7\u6599\uff0c\u4e00\u5b9a\u662f\u7528\u90a3\u500b\u4eba\u7684\u91d1\u9470\uff0c\u52a0\u5bc6\u4ea4\u4ed8\u7d66 &#8220;\u90a3\u500b\u4eba&#8221; \u3002 \u4f46\u7121\u6cd5\u4fdd\u8b49 &#8220;\u90a3\u500b\u4eba&#8221; \u4e0d\u6703\u76dc\u5237\u4f60\u7684\u4fe1\u7528\u5361\uff0c\u4e5f\u7121\u6cd5\u4fdd\u8b49 &#8220;\u90a3\u500b\u4eba&#8221; \u7684\u4e3b\u6a5f\u8cc7\u6599\u5eab\u4e0d\u6703\u88ab\u99ed\u5ba2\u5165\u4fb5\uff0c\u56e0\u800c\u53d6\u5f97\u4f60\u7684\u4fe1\u7528\u5361\u8cc7\u6599\u3002\n<\/p><\/blockquote>\n<p><strong><em>\u5728 X.509 \u4e2d\u6240\u4f7f\u7528\u5230\u7684 PKI \u6a19\u6e96<\/em><\/strong><\/p>\n<ol>\nPKCS#7 (Cryptographic Message Syntax Standard &#8211; public keys with proof of identity for signed and\/or encrypted message for PKI)\n<\/ol>\n<ol>\nSecure Sockets Layer (SSL) &#8211; cryptographic protocols for internet secure communications<br \/>\nOnline Certificate Status Protocol (OCSP) \/ Certificate Revocation List (CRL) &#8211; this is for validating proof of identity\n<\/ol>\n<ol>\nPKCS#12 (Personal Information Exchange Syntax Standard) &#8211; used to store a private key with the appropriate public key certificate\n<\/ol>\n<p><strong><em>\u7c3d\u7f72\u6191\u8b49\u6b0a\u5229\u7684\u58df\u65b7<\/em><\/strong><\/p>\n<p>\u6191\u8b49 \u6216 CA \u662f\u7528\u4f86\u63d0\u4f9b\u5176\u5b83\u4eba\u8a8d\u8b49\u4f7f\u7528\u3002\u9019\u662f\u4e00\u500b\u7b2c\uff13\u65b9\u6a5f\u69cb\u8a8d\u8b49\u7684\u6a21\u5f0f\u3002<\/p>\n<p>\u76ee\u524d\u6709\u5f88\u591a\u7684\u5546\u696d\u8a8d\u8b49\u6a5f\u69cb\uff0c\u63d0\u4f9b\u6536\u8cbb\u7684\u7c3d\u8b49\u670d\u52d9\u3002<\/p>\n<p>\u56e0\u70baX.509 \u662f\u91d1\u5b57\u5854\u7d50\u69cb\uff0c\u5728\u9802\u7aef\u7684Root CA\u6703\u6709\u5f88\u5927\u7684\u5546\u696d\u5229\u76ca\u3002\u653f\u5e9c\u6216\u516c\u5171\u5718\u9ad4\u4e5f\u8a31\u61c9\u8a72\u64c1\u6709\u81ea\u5df1\u7684CAs\uff0c\u7136\u5f8c\u63d0\u4f9b\u514d\u8cbb\u7684\u7c3d\u8b49\u670d\u52d9\uff0c\u4ee5\u907f\u514d\u88ab\u5c11\u6578\u5546\u696d\u8a8d\u8b49\u6a5f\u69cb\u58df\u65b7\u3002<\/p>\n<blockquote><p>\n\u53c3\u8003\u8cc7\u6599:<br \/>\n<a href=\"http:\/\/en.wikipedia.org\/wiki\/X.509\" target=\"_blank\">wikipedia X.509<\/a>\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>X.509 \u662f\u4ec0\u9ebc\u5462\uff1f \u5728\u5bc6\u78bc\u5b78\u4e2d\uff0c\u5b83\u662f\u4e00\u7a2e\u516c\u958b\u91d1\u9470(PKI) \u7684\u96fb\u4fe1\u901a\u8a0a\u6a19\u6e96\u3002 \u9019\u500b\u516c\u958b\u91d1\u9470\u7684\u6280\u8853\uff0c\u61c9\u7528\u4f86\u505a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,24],"tags":[30,31,29,27,28],"class_list":["post-208","post","type-post","status-publish","format-standard","hentry","category-mistech","category-mistech-net","tag-ca","tag-pgp","tag-root-ca","tag-x-509","tag-28"],"_links":{"self":[{"href":"https:\/\/blog.nuface.tw\/index.php?rest_route=\/wp\/v2\/posts\/208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.nuface.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.nuface.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.nuface.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.nuface.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=208"}],"version-history":[{"count":60,"href":"https:\/\/blog.nuface.tw\/index.php?rest_route=\/wp\/v2\/posts\/208\/revisions"}],"predecessor-version":[{"id":288,"href":"https:\/\/blog.nuface.tw\/index.php?rest_route=\/wp\/v2\/posts\/208\/revisions\/288"}],"wp:attachment":[{"href":"https:\/\/blog.nuface.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nuface.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nuface.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}