{"id":665,"date":"2016-08-30T18:49:35","date_gmt":"2016-08-30T10:49:35","guid":{"rendered":"https:\/\/www.hxlive.cn\/?p=665"},"modified":"2011-10-25T18:41:39","modified_gmt":"2011-10-25T10:41:40","slug":"%e5%a8%81%e6%b5%b7%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/www.hxlive.cn\/?p=665","title":{"rendered":"\u4e00\u4e9b\u5173\u4e8e\u53cc\u6570\u5b57\u7b7e\u540d\u7684\u5fc3\u5f97"},"content":{"rendered":"<p style=\"text-indent:2em;\">\n\t\u597d\u50cf\u597d\u4e45\u597d\u4e45\u6ca1\u66f4\u65b0\u4e86\uff0c\u5176\u5b9e\u4e3b\u8981\u662f\u61d2\uff0c\u4e8b\u60c5\u591a\uff0c\u6ca1\u6709\u7279\u522b\u597d\u7684\u4e1c\u897f\u503c\u5f97\u5206\u4eab\uff0c\u6240\u4ee5\u5c31\u6ca1\u600e\u4e48\u6253\u7406\u3002\n<\/p>\n<p style=\"text-indent:2em;\">\n\t\u4e0d\u8fc7\u6700\u8fd1\u4e00\u76f4\u5728\u770b\u6570\u5b57\u7b7e\u540d\u76f8\u5173\u7684\u5185\u5bb9\uff0c\u9047\u5230\u4e86\u4e0d\u5c11\u95ee\u9898\uff0c\u4e5f\u89e3\u51b3\u4e86\u4e00\u4e9b\u95ee\u9898\uff0c\u4ec5\u6b64\u8bb0\u5f55\u4ee5\u5907\u4e0d\u65f6\u4e4b\u9700\u3002\n<\/p>\n<p style=\"text-indent:2em;\">\n\t\u7531\u4e8e\u5fae\u8f6f\u57282016\u5e741\u67081\u65e5\u66f4\u65b0\u4ee3\u7801\u7b7e\u540d\u8bc1\u4e66\u9a8c\u7b7e\u7b56\u7565\uff0c\u53d6\u6d88\u5bf9SHA1\u7b97\u6cd5\u8bc1\u4e66\u5728\u8f6f\u4ef6\u6570\u5b57\u7b7e\u540d\u9a8c\u7b7e\u4e2d\u7684\u652f\u6301\uff0c\u800c\u6700\u65b0\u7684Windows\u4e2d\uff0cSHA1\u7684\u6570\u5b57\u7b7e\u540d\u4e0d\u518d\u88ab\u8ba4\u53ef\uff0cSHA256\u5c06\u6210\u4e3a\u4e3b\u8981\u7684\u6570\u5b57\u7b7e\u540d\u7b97\u6cd5\u3002\u4f46\u662f\u95ee\u9898\u4e5f\u6765\u4e86\uff0c\u7531\u4e8eWindows 7\u4e4b\u524d\u7684\u7cfb\u7edf\u5bf9\u4e8eSHA256\u652f\u6301\u6709\u9650\uff0cSHA1\u8fd8\u662f\u6709\u4e00\u5b9a\u7684\u5b58\u5728\u610f\u4e49\u7684\u3002\n<\/p>\n<p style=\"text-indent:2em;\">\n\t\u5bf9\u4e8e\u666e\u901a\u7528\u6237\u800c\u8a00\uff0c\u8fd9\u4e9b\u53ef\u80fd\u5f71\u54cd\u4e0d\u5927\uff0c\u4f46\u662f\u5bf9\u4e8e\u5f00\u53d1\u8005\u800c\u8a00\uff0c\u786e\u5b9e\u5f92\u589e\u4e86\u9ebb\u70e6\uff0c\u6570\u5b57\u7b7e\u540d\u4f7f\u7528\u4e0d\u5f53\u4fbf\u4f1a\u6240\u5f00\u53d1\u7684\u8f6f\u4ef6\u88ab\u5fae\u8f6f\u9a8c\u8bc1\u7b56\u7565\u62e6\u622a\u7b49\u7684\u8bf8\u591a\u95ee\u9898\u3002\n<\/p>\n<p style=\"text-indent:2em;\">\n\t\u53cc\u7b7e\u540d\u662f\u4e2a\u4e0d\u9519\u7684\u89e3\u51b3\u65b9\u6cd5\uff0c\u5c31\u662f\u5148\u5bf9\u8f6f\u4ef6\u8fdb\u884c\u4e00\u6b21SHA1\u7684\u6570\u5b57\u7b7e\u540d\uff0c\u7136\u540e\u518d\u8ffd\u52a0\u4e00\u6b21SHA256\u7684\u7b7e\u540d\uff0c\u4ee5\u6b64\u6765\u589e\u5f3a\u517c\u5bb9\u6027\uff0c\u4fdd\u8bc1\u4eceWindows XP\u5230Windows 10\u90fd\u80fd\u591f\u6b63\u5e38\u8bc6\u522b\u8ba4\u53ef\u3002\n<\/p>\n<p style=\"text-indent:2em;\">\n\t\u53cc\u7b7e\u540d\u64cd\u4f5c\u65b9\u6cd5\uff1a\n<\/p>\n<p style=\"text-indent:2em;\">\n\t\u6b63\u5e38\u60c5\u51b5\u4e0b\u4e00\u822c\u662f\u5148\u8fdb\u6027SHA1\u7b7e\u540d\uff1a\n<\/p>\n<pre class=\"prettyprint lang-bsh\">signtool.exe sign \/f sha1.pfx  \/p &lt;sha1 cert password&gt; \/t https:\/\/timestamp.verisign.com\/scripts\/timstamp.dll &lt;file to be signed&gt;<\/pre>\n<p>\n\t\u7136\u540e\u518d\u8ffd\u52a0SHA256\u7b7e\u540d\uff1a\n<\/p>\n<pre class=\"prettyprint lang-bsh\">signtool.exe sign \/f sha256.pfx \/p &lt;sha256 cert password&gt; \/as \/fd sha256 \/tr https:\/\/sha256timestamp.ws.symantec.com\/sha256\/ \/td sha256  &lt;file to be signed&gt;<\/pre>\n<p style=\"text-indent:2em;\">\n\t\u53ef\u9644\u52a0 \/ac \u7528\u6cd5\uff0c\u6dfb\u52a0\u4ea4\u53c9\u8bc1\u4e66\u505a\u9a71\u52a8\u6a21\u5f0f\u7b7e\u540d\u3002\n<\/p>\n<p style=\"text-indent:2em;\">\n\t\u66f4\u591a\u7b7e\u540d\u5de5\u5177\u4f7f\u7528\u65b9\u6cd5\u8be6\u89c1\uff1a<a href=\"https:\/\/msdn.microsoft.com\/zh-cn\/library\/8s9b9yaz.aspx\" target=\"_blank\">https:\/\/msdn.microsoft.com\/zh-cn\/library\/8s9b9yaz.aspx<\/a>\n<\/p>\n<p style=\"text-indent:2em;\">\n\t\u7531\u4e8e\u8001\u7248\u672c\u7684signtool.exe\u65e0\u6cd5\u5bf9\u4e8e\u53cc\u7b7e\u540d\u63d0\u4f9b\u5b8c\u7f8e\u652f\u6301\uff0c\u6240\u4ee5signtool.exe\u6700\u597d\u4f7f\u7528\u65b0\u7248\u672c\uff0c\u6bd4\u5982Windows 10 SDKs\u4e2d\u7684\u7248\u672c\u3002\u6709\u65f6\u5019\u5355\u72ec\u4f7f\u7528\u4e0a\u9762\u7684\u547d\u4ee4\u5b8c\u6210\u7684\u53cc\u7b7e\u540d\uff0c\u5728\u505a\u7b7e\u540d\u6821\u9a8c\u7684\u65f6\u5019\u4f1a\u63d0\u793a\u7f3a\u5c11\u67d0\u4e9b\u4e2d\u7ea7\u8bc1\u4e66\uff0c\u6240\u4ee5\u4e3a\u4e86\u63d0\u9ad8\u7b7e\u540d\u7684\u6210\u529f\u7387\u548c\u517c\u5bb9\u6027\uff0c\u5efa\u8bae\u6267\u884c\u4e00\u4e0b\u73af\u5883\u6e05\u7406\u3002\u6bd4\u5982\u4e0b\u9762\u7684\u547d\u4ee4\uff1a\n<\/p>\n<pre class=\"prettyprint\">delroot.exe -del -c -n \"VeriSign Class 3 Public Primary Certification Authority - G5\" -s -r localmachine root\r\n\r\ncertmgr.exe -del -c -n \"VeriSign Class 3 Public Primary Certification Authority - G5\" -s -r currentUser ca\r\n\r\ncertmgr.exe -add -c ca1.cer -s -r currentUser ca\r\n\r\ncertmgr.exe -add -c ca1-sha256.cer -s -r currentUser ca\r\n\r\ncertmgr.exe -add -c ca2.cer -s -r currentUser ca <\/pre>\n<p style=\"text-indent:2em;\">\n\t\u6700\u540e\u5206\u4eab\u51e0\u4e2a\u7b7e\u540d\u6240\u7528\u65f6\u95f4\u6233\u7684URL\u3002\n<\/p>\n<p style=\"text-indent:2em;\">\n\tSymantec\n<\/p>\n<p style=\"text-indent:2em;\">\n\tSHA1\uff1ahttps:\/\/timestamp.verisign.com\/scripts\/timstamp.dll\n<\/p>\n<p style=\"text-indent:2em;\">\n\tSHA256\uff1ahttps:\/\/sha256timestamp.ws.symantec.com\/sha256\n<\/p>\n<p style=\"text-indent:2em;\">\n\tComodoca\n<\/p>\n<p style=\"text-indent:2em;\">\n\tSHA1\uff1ahttps:\/\/timestamp.comodoca.com\/authenticode\n<\/p>\n<p style=\"text-indent:2em;\">\n\tSHA256\uff1ahttps:\/\/timestamp.comodoca.com\n<\/p>\n<p style=\"text-indent:2em;\">\n\tTrustasia\n<\/p>\n<p style=\"text-indent:2em;\">\n\tSHA1\uff1ahttps:\/\/timestamp.trustasia.com\/timstamp.dll\n<\/p>\n<p style=\"text-indent:2em;\">\n\tSHA256\uff1ahttps:\/\/timestamp.trustasia.com\/rfc3161<\/p>\n","protected":false},"excerpt":{"rendered":"<p style=\"text-indent:2em;\">\n\t\u597d\u50cf\u597d\u4e45\u597d\u4e45\u6ca1\u66f4\u65b0\u4e86\uff0c\u5176\u5b9e\u4e3b\u8981\u662f\u61d2\uff0c\u4e8b\u60c5\u591a\uff0c\u6ca1\u6709\u7279\u522b\u597d\u7684\u4e1c\u897f\u503c\u5f97\u5206\u4eab\uff0c\u6240\u4ee5\u5c31\u6ca1\u600e\u4e48\u6253\u7406\u3002\n<\/p>\n<p style=\"text-indent:2em;\">\n\t\u4e0d\u8fc7\u6700\u8fd1\u4e00\u76f4\u5728\u770b\u6570\u5b57\u7b7e\u540d\u76f8\u5173\u7684\u5185\u5bb9\uff0c\u9047\u5230\u4e86\u4e0d\u5c11\u95ee\u9898\uff0c\u4e5f\u89e3\u51b3\u4e86\u4e00\u4e9b\u95ee\u9898\uff0c\u4ec5\u6b64\u8bb0\u5f55\u4ee5\u5907\u4e0d\u65f6\u4e4b\u9700\u3002\n<\/p>\n<p style=\"text-indent:2em;\">\n\t\u7531\u4e8e\u5fae\u8f6f\u57282016\u5e741\u67081\u65e5\u66f4\u65b0\u4ee3\u7801\u7b7e\u540d\u8bc1\u4e66\u9a8c\u7b7e\u7b56\u7565\uff0c\u53d6\u6d88\u5bf9SHA1\u7b97\u6cd5\u8bc1\u4e66\u5728\u8f6f\u4ef6\u6570\u5b57\u7b7e\u540d\u9a8c\u7b7e\u4e2d\u7684\u652f\u6301\uff0c\u800c\u6700\u65b0\u7684Windows\u4e2d\uff0cSHA1\u7684\u6570\u5b57\u7b7e\u540d\u4e0d\u518d\u88ab\u8ba4\u53ef\uff0cSHA256\u5c06\u6210\u4e3a\u4e3b\u8981\u7684\u6570\u5b57\u7b7e\u540d\u7b97\u6cd5\u3002\u4f46\u662f\u95ee\u9898\u4e5f\u6765\u4e86\uff0c\u7531\u4e8eWindows 7\u4e4b\u524d\u7684\u7cfb\u7edf\u5bf9\u4e8eSHA256\u652f\u6301\u6709\u9650\uff0cSHA1\u8fd8\u662f\u6709\u4e00\u5b9a\u7684\u5b58\u5728\u610f\u4e49\u7684\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[28],"_links":{"self":[{"href":"https:\/\/www.hxlive.cn\/index.php?rest_route=\/wp\/v2\/posts\/665"}],"collection":[{"href":"https:\/\/www.hxlive.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hxlive.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hxlive.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hxlive.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=665"}],"version-history":[{"count":0,"href":"https:\/\/www.hxlive.cn\/index.php?rest_route=\/wp\/v2\/posts\/665\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hxlive.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=665"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hxlive.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=665"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hxlive.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=665"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}