{"id":9607,"date":"2021-10-11T13:33:20","date_gmt":"2021-10-11T05:33:20","guid":{"rendered":"https:\/\/blog.naibabiji.com\/?p=9607"},"modified":"2021-10-11T13:33:20","modified_gmt":"2021-10-11T05:33:20","slug":"warning-getimagesize-ssl-operation-failed-with-code-1","status":"publish","type":"post","link":"https:\/\/blog.naibabiji.com\/skill\/warning-getimagesize-ssl-operation-failed-with-code-1.html","title":{"rendered":"\u8bb0\u4e00\u4e2aSSL\u62a5\u9519Warning: getimagesize(): SSL operation failed with code 1"},"content":{"rendered":"<p>\u4eca\u5929\u5728\u7ed9\u4e00\u4e2a\u5916\u8d38\u7f51\u7ad9\u5b89\u88c5\u4e3b\u9898\u7684\u65f6\u5019\uff0c\u5bfc\u5165\u5b8c\u6bd5Demo\u6570\u636e\uff0c\u7f51\u7ad9\u524d\u53f0\u56fe\u7247\u663e\u793a\u7684\u4f4d\u7f6e\u62a5\u9519\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<pre>Warning: getimagesize(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in \/www\/wwwroot\/*\/wp-content\/themes\/*\/framework\/class-image.php on line 120\r\n\r\nWarning: getimagesize(): Failed to enable crypto in \/www\/wwwroot\/*\/wp-content\/themes\/*\/framework\/class-image.php on line 120\r\n\r\nWarning: getimagesize(https:\/\/*\/wp-content\/uploads\/2021\/02\/video-opacity-tiny.png): failed to open stream: operation failed in \/www\/wwwroot\/*\/wp-content\/themes\/*\/framework\/class-image.php on line 120<\/pre>\n<p>\u51fa\u73b0\u8fd9\u4e2a\u95ee\u9898\u7684\u539f\u56e0\u662f\u8bc1\u4e66\u95ee\u9898\uff0c\u89e3\u51b3\u529e\u6cd5\u5982\u4e0b\uff1a<\/p>\n<p>1\u3001\u4e0b\u8f7dcert\u8bc1\u4e66\u5230\u670d\u52a1\u5668\u4efb\u610f\u4f4d\u7f6e\uff0c\u5730\u5740\uff1ahttps:\/\/curl.haxx.se\/ca\/cacert.pem<br \/>\n2\u3001\u4fee\u6539php.ini \u914d\u7f6e\u6587\u4ef6\u91cc\u9762\u7684openssl.cafile= \u4e3a openssl.cafile=\u670d\u52a1\u5668\u76ee\u5f55\/cacert.pem<br \/>\n3\u3001\u91cd\u65b0\u6267\u884c\u5373\u53ef~<br \/>\n\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<br \/>\n\u65b9\u6cd5\u6765\u6e90\uff1ahttps:\/\/blog.csdn.net\/default7\/article\/details\/77008973<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;9607&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;2&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;3&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;4&quot;,&quot;greet&quot;:&quot;\u7ed9\u672c\u6587\u6253\u5206 post&quot;,&quot;legend&quot;:&quot;3\\\/5 - (2 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;\u8bb0\u4e00\u4e2aSSL\u62a5\u9519Warning: getimagesize(): SSL operation failed with code 1&quot;,&quot;width&quot;:&quot;82&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 82px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            3\/5 - (2 votes)    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u5728\u7ed9\u4e00\u4e2a\u5916\u8d38\u7f51\u7ad9\u5b89\u88c5\u4e3b\u9898\u7684\u65f6\u5019\uff0c\u5bfc\u5165\u5b8c\u6bd5Demo\u6570\u636e\uff0c\u7f51\u7ad9\u524d\u53f0\u56fe\u7247\u663e\u793a\u7684\u4f4d\u7f6e\u62a5\u9519\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a Warnin [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"\u8bb0\u4e00\u4e2aSSL\u62a5\u9519Warning: getimagesize(): SSL operation failed with code 1 - \u5976\u7238\u5efa\u7ad9\u7b14\u8bb0","description":"\u4eca\u5929\u5728\u7ed9\u4e00\u4e2a\u5916\u8d38\u7f51\u7ad9\u5b89\u88c5\u4e3b\u9898\u7684\u65f6\u5019\uff0c\u5bfc\u5165\u5b8c\u6bd5Demo\u6570\u636e\uff0c\u7f51\u7ad9\u524d\u53f0\u56fe\u7247\u663e\u793a\u7684\u4f4d\u7f6e\u62a5\u9519\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a \u51fa\u73b0\u8fd9\u4e2a\u95ee\u9898\u7684\u539f\u56e0\u662f\u8bc1\u4e66\u95ee\u9898\uff0c\u89e3\u51b3\u529e\u6cd5\u5982\u4e0b\uff1a 1\u3001\u4e0b\u8f7dcert\u8bc1\u4e66\u5230\u670d\u52a1\u5668\u4efb\u610f\u4f4d\u7f6e\uff0c\u5730\u5740\uff1ahttps:\/\/curl.haxx.se\/ca\/cacert.pem 2\u3001\u4fee\u6539php.ini \u914d\u7f6e\u6587\u4ef6\u91cc\u9762\u7684openssl.cafi"},"footnotes":""},"categories":[142],"tags":[],"class_list":["post-9607","post","type-post","status-publish","format-standard","hentry","category-skill"],"_links":{"self":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts\/9607","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/comments?post=9607"}],"version-history":[{"count":0,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts\/9607\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/media?parent=9607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/categories?post=9607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/tags?post=9607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}