{"id":537,"date":"2024-07-27T09:45:17","date_gmt":"2024-07-27T01:45:17","guid":{"rendered":"https:\/\/blog.yuekegu.com\/?p=537"},"modified":"2024-07-27T09:45:17","modified_gmt":"2024-07-27T01:45:17","slug":"%e5%85%b3%e4%ba%8e%e5%bc%80%e5%90%afphp%e7%9a%84ssl","status":"publish","type":"post","link":"https:\/\/book.yuekegu.com\/index.php\/2024\/07\/27\/%e5%85%b3%e4%ba%8e%e5%bc%80%e5%90%afphp%e7%9a%84ssl\/","title":{"rendered":"\u89e3\u51b3cURL error 60: SSL certificate problem"},"content":{"rendered":"\n<p>\u4eca\u5929\u5728\u505a\u672c\u5730\u73af\u5883\u5f00\u53d1<a href=\"https:\/\/so.csdn.net\/so\/search?q=%E9%98%BF%E9%87%8C%E4%BA%91%E7%9F%AD%E4%BF%A1&amp;spm=1001.2101.3001.7020\" target=\"_blank\" rel=\"noreferrer noopener\">\u963f\u91cc\u4e91\u77ed\u4fe1<\/a>\u9a8c\u8bc1\u65f6\u62a5\u9519\uff1acURL error 60: SSL certificate problem: unable to get local issuer certificate (see https:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)<\/p>\n\n\n\n<p>\u89e3\u51b3\u529e\u6cd5<\/p>\n\n\n\n<p>\u8fdb\u5165\uff1a<a href=\"https:\/\/links.jianshu.com\/go?to=https%3A%2F%2Fcurl.se%2Fdocs%2Fcaextract.html\">https:\/\/curl.se\/docs\/caextract.html<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i-blog.csdnimg.cn\/blog_migrate\/d8c98f6ebac5481e34afb213bb352625.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u4e0b\u8f7d\u6700\u65b0\u7248Cacert.pem<br>\u590d\u5236\u8fd9\u4e2a\u6587\u4ef6\u5230php\u7684\u5b89\u88c5\u76ee\u5f55\u4e0b\uff0c\u5982\u4e0b\u56fe\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i-blog.csdnimg.cn\/blog_migrate\/c437e9480562837c17e2f2928a399ec2.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u6253\u5f00php.<a href=\"https:\/\/so.csdn.net\/so\/search?q=ini%E6%96%87%E4%BB%B6&amp;spm=1001.2101.3001.7020\" target=\"_blank\" rel=\"noreferrer noopener\">ini\u6587\u4ef6<\/a>\uff0c\u641c\u7d22curl.cainfo \u53bb\u6389\u524d\u9762\u7684#\u6ce8\u91ca \u586b\u4e0a\u8be5\u6587\u4ef6\u7684\u7edd\u5bf9\u8def\u5f84\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i-blog.csdnimg.cn\/blog_migrate\/4459ca63c6ddbe81bfca73baa98fe423.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>*\u6ce8\u610f\uff1a\u5982\u679c\u6309\u7167\u4e0a\u9762\u8fd9\u4e2a\u65b9\u5f0f\u8fd8\u62a5\u9519\u7684\u53ef\u80fd\u5c31\u662fopenssl\u6ca1\u6709\u5f00\u542f\uff0cphp\u7684openssl\u6269\u5c55\u9700\u8981\u5f00\u542f&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i-blog.csdnimg.cn\/blog_migrate\/ccc8b7d77f69151f7691d9537b0ecfb1.png\" alt=\"\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u5728\u505a\u672c\u5730\u73af\u5883\u5f00\u53d1\u963f\u91cc\u4e91\u77ed\u4fe1\u9a8c\u8bc1\u65f6\u62a5\u9519\uff1acURL error 60: SSL certificate problem: unable to get local issuer certificate (see https:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html) \u89e3\u51b3\u529e\u6cd5 \u8fdb\u5165\uff1ahttps:\/\/curl.se\/docs\/caextract.html \u4e0b\u8f7d\u6700\u65b0\u7248Cacert.pem\u590d\u5236\u8fd9\u4e2a\u6587\u4ef6\u5230php\u7684\u5b89\u88c5\u76ee\u5f55\u4e0b\uff0c\u5982\u4e0b\u56fe\u6240\u793a \u6253\u5f00php.ini\u6587\u4ef6\uff0c\u641c\u7d22curl.cainfo \u53bb\u6389\u524d\u9762\u7684#\u6ce8\u91ca \u586b\u4e0a\u8be5\u6587\u4ef6\u7684\u7edd\u5bf9\u8def\u5f84\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a&nbsp; *\u6ce8\u610f\uff1a\u5982\u679c\u6309\u7167\u4e0a\u9762\u8fd9\u4e2a\u65b9\u5f0f\u8fd8\u62a5\u9519\u7684\u53ef\u80fd\u5c31\u662fopenssl\u6ca1\u6709\u5f00\u542f\uff0cphp\u7684openssl\u6269\u5c55\u9700\u8981\u5f00\u542f&nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-537","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/posts\/537","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/comments?post=537"}],"version-history":[{"count":0,"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/posts\/537\/revisions"}],"wp:attachment":[{"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/media?parent=537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/categories?post=537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/tags?post=537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}