{"id":3066,"date":"2016-02-12T10:20:01","date_gmt":"2016-02-12T02:20:01","guid":{"rendered":"https:\/\/www.wopus.org\/?p=3066"},"modified":"2016-02-12T10:20:01","modified_gmt":"2016-02-12T02:20:01","slug":"wordpress%e6%9b%b4%e6%96%b0%e6%8f%90%e7%a4%bassl-certificate-problem%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95","status":"publish","type":"post","link":"https:\/\/wopus.org\/?p=3066","title":{"rendered":"WordPress\u66f4\u65b0\u63d0\u793aSSL certificate problem\u7684\u89e3\u51b3\u529e\u6cd5"},"content":{"rendered":"<p><strong>\u95ee\u9898\u63cf\u8ff0\uff1a<\/strong><\/p>\n<p>\u5b89\u88c5\/\u5347\u7ea7WordPress\u4e3b\u9898\u3001\u63d2\u4ef6\u7684\u65f6\u5019\uff0c\u51fa\u73b0\uff1a<\/p>\n<blockquote><p>\u4e0b\u8f7d\u5931\u8d25\u3002: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed<\/p><\/blockquote>\n<p><strong>\u89e3\u51b3\u529e\u6cd5\uff1a<\/strong><\/p>\n<p>1\uff0c\u66f4\u65b0wp-includes\/certificates\/ca-bundle.crt\u7684\u8bc1\u4e66\uff0c\u7528\u65b0\u7684\u8bc1\u4e66\u66ff\u6362\uff0c\u65b0\u8bc1\u4e66\u5730\u5740\uff1a<a href=\"https:\/\/www.wopus.org\/wp-content\/uploads\/2016\/02\/ca-bundle.zip\" target=\"_blank\">\u70b9\u51fb\u4e0b\u8f7d<\/a>\u3002<\/p>\n<p>\u89e3\u538b\u4e4b\u540e\uff0c\u66ff\u6362\u9ed8\u8ba4\u7684\u5c31\u884c\u3002<\/p>\n<p>\u8fd9\u79cd\u529e\u6cd5\u6700\u5f00\u59cb\u662f\u6709\u7528\u7684\uff0c\u4f46\u540e\u9762\u5728\u6b64\u66f4\u65b0WordPress\u4e3b\u9898\u6216\u8005\u63d2\u4ef6\uff0c\u4f9d\u7136\u4f1a\u51fa\u73b0\u95ee\u9898\u3002<\/p>\n<p>2\uff0c\u8fd9\u4e2a\u529e\u6cd5\u662fWopus\u5df2\u7ecf\u6d4b\u8bd5\u8fc7\u597d\u591a\u6b21\u5e76\u4e14\u786e\u5b9a\u6709\u6548\u7684\u529e\u6cd5\uff1a<\/p>\n<p>\u628a\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<p><code>add_action('http_request_args', 'jkudish_http_request_args', 10, 2);<br \/>\nfunction jkudish_http_request_args($args, $url) {<br \/>\n$args['sslverify'] = false;<br \/>\nreturn $args;<br \/>\n}<\/code><\/p>\n<p>\u653e\u5728\u5f53\u524d\u4f7f\u7528\u7684WordPress\u4e3b\u9898\u7684functions.php\u6587\u4ef6\u7684\u6700\u4e0b\u9762\uff0c\u4fdd\u5b58\u6587\u4ef6\u5373\u53ef\u3002<\/p>\n<p><strong>\u989d\u5916\u8bf4\u660e\uff1a<\/strong><\/p>\n<p>\u73b0\u5728\u6709\u4e9bWordPress\u4e3b\u9898\uff0c\u56e0\u4e3a\u529f\u80fd\u5f3a\u5927\uff0c\u4f1a\u6709\u4e00\u4e9b\u5f88\u7ec6\u5206\u7684functions.php\u6587\u4ef6\uff0c\u8fd9\u4e2a\u65f6\u5019\u9700\u8981\u6839\u636e\u5f53\u524d\u4e3b\u9898\u7684functions.php\u6587\u4ef6\u91cc\u662f\u5426\u6709\u5f15\u7528\u5176\u4ed6\u7684funtions.php\u6587\u4ef6\u6765\u786e\u5b9a\u4ee3\u7801\u7a76\u7adf\u653e\u5728\u90a3\u4e2a\u6587\u4ef6\u91cc\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u95ee\u9898\u63cf\u8ff0\uff1a \u5b89\u88c5\/\u5347\u7ea7WordPress\u4e3b\u9898\u3001\u63d2\u4ef6\u7684\u65f6\u5019\uff0c\u51fa\u73b0\uff1a \u4e0b\u8f7d\u5931\u8d25\u3002: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed \u89e3\u51b3\u529e\u6cd5\uff1a 1\uff0c\u66f4\u65b0wp-includes\/certificates\/ca-bundle.crt\u7684\u8bc1\u4e66\uff0c\u7528\u65b0\u7684\u8bc1\u4e66\u66ff\u6362\uff0c\u65b0\u8bc1\u4e66\u5730\u5740\uff1a\u70b9\u51fb\u4e0b\u8f7d\u3002 \u89e3\u538b\u4e4b\u540e\uff0c\u66ff\u6362\u9ed8\u8ba4\u7684\u5c31\u884c\u3002 \u8fd9\u79cd\u529e\u6cd5\u6700\u5f00\u59cb\u662f\u6709\u7528\u7684\uff0c\u4f46\u540e\u9762\u5728\u6b64\u66f4\u65b0WordPress\u4e3b\u9898\u6216\u8005\u63d2\u4ef6\uff0c\u4f9d\u7136\u4f1a\u51fa\u73b0\u95ee\u9898\u3002 2\uff0c\u8fd9\u4e2a\u529e\u6cd5\u662fWopus\u5df2\u7ecf\u6d4b\u8bd5\u8fc7\u597d\u591a\u6b21\u5e76\u4e14\u786e\u5b9a\u6709\u6548\u7684\u529e\u6cd5\uff1a \u628a\u4ee5\u4e0b\u4ee3\u7801\uff1a add_action(&#8216;http_request_args&#8217;, &#8216;jkudish_http_request_args&#8217;, 10, 2); function jkudish_http_request_args($args, $url) { $args[&#8216;sslverify&#8217;] = false; return $args; } \u653e\u5728\u5f53\u524d\u4f7f\u7528\u7684WordPress\u4e3b\u9898\u7684functions.php\u6587\u4ef6\u7684\u6700\u4e0b\u9762\uff0c\u4fdd\u5b58\u6587\u4ef6\u5373\u53ef\u3002 \u989d\u5916\u8bf4\u660e\uff1a \u73b0\u5728\u6709\u4e9bWordPress\u4e3b\u9898\uff0c\u56e0\u4e3a\u529f\u80fd\u5f3a\u5927\uff0c\u4f1a\u6709\u4e00\u4e9b\u5f88\u7ec6\u5206\u7684functions.php\u6587\u4ef6\uff0c\u8fd9\u4e2a\u65f6\u5019\u9700\u8981\u6839\u636e\u5f53\u524d\u4e3b\u9898\u7684functions.php\u6587\u4ef6\u91cc\u662f\u5426\u6709\u5f15\u7528\u5176\u4ed6\u7684funtions.php\u6587\u4ef6\u6765\u786e\u5b9a\u4ee3\u7801\u7a76\u7adf\u653e\u5728\u90a3\u4e2a\u6587\u4ef6\u91cc\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[955],"tags":[1108,1107],"class_list":["post-3066","post","type-post","status-publish","format-standard","hentry","category-wordpress-troubleshooting","tag-ssl-certificate-problem-wordpress","tag-wordpress-ssl"],"_links":{"self":[{"href":"https:\/\/wopus.org\/index.php?rest_route=\/wp\/v2\/posts\/3066","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wopus.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wopus.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wopus.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wopus.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3066"}],"version-history":[{"count":0,"href":"https:\/\/wopus.org\/index.php?rest_route=\/wp\/v2\/posts\/3066\/revisions"}],"wp:attachment":[{"href":"https:\/\/wopus.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wopus.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wopus.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}