{"id":114,"date":"2023-07-18T08:18:57","date_gmt":"2023-07-18T11:18:57","guid":{"rendered":"https:\/\/difusao.tech\/blog\/?p=114"},"modified":"2023-08-23T13:53:36","modified_gmt":"2023-08-23T16:53:36","slug":"erro-ao-baixar-thema-no-wordpress-failed-curl","status":"publish","type":"post","link":"https:\/\/difusao.tech\/blog\/erro-ao-baixar-thema-no-wordpress-failed-curl\/","title":{"rendered":"Erro ao baixar thema\u00a0no wordpress &#8211; Failed cURL"},"content":{"rendered":"\n<p><mark style=\"background-color:#abb8c3\" class=\"has-inline-color has-black-color\">Installation failed: Download failed. cURL error 60: SSL certificate problem: self signed certificate in certificate chain.<\/mark><\/p>\n\n\n\n<p>O erro acima \u00e9 apresentado geralmente em locais onde a configura\u00e7\u00e3o de infraestrutura do servidor proxy n\u00e3o permite verificar o SSl utilizando o cURL, segue imagem abaixo.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"392\" height=\"344\" src=\"https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2023\/07\/erroThema.png\" alt=\"\" class=\"wp-image-115\" srcset=\"https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2023\/07\/erroThema.png 392w, https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2023\/07\/erroThema-300x263.png 300w\" sizes=\"auto, (max-width: 392px) 100vw, 392px\" \/><\/figure>\n\n\n\n<p>Agora vamos a uma solu\u00e7\u00e3o de contorno, vamos fazer com que o WordPress ignore a verifica\u00e7\u00e3o SSL.<\/p>\n\n\n\n<p>Coloca no arquivo wp-config.php o c\u00f3digo abaixo:<\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">add_action( &#8216;http_api_curl&#8217;, function( $handle ) {<br>curl_setopt( $handle, CURLOPT_SSL_VERIFYPEER, false );<br>curl_setopt( $handle, CURLOPT_SSL_VERIFYHOST, false );<br>});<\/mark><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installation failed: Download failed. cURL error 60: SSL certificate problem: self signed certificate in certificate chain. O erro<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[63],"tags":[162,160,161,163],"class_list":["post-114","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-erro-ssl","tag-ssl","tag-wordpress","tag-wordpress-ssl"],"_links":{"self":[{"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/posts\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/comments?post=114"}],"version-history":[{"count":1,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/posts\/114\/revisions"}],"predecessor-version":[{"id":116,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/posts\/114\/revisions\/116"}],"wp:attachment":[{"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/media?parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/categories?post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/tags?post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}