{"id":161,"date":"2016-08-07T10:37:48","date_gmt":"2016-08-07T08:37:48","guid":{"rendered":"http:\/\/techblog.vindvejr.dk\/?p=161"},"modified":"2016-08-07T10:37:48","modified_gmt":"2016-08-07T08:37:48","slug":"pear-upgrade-broken","status":"publish","type":"post","link":"https:\/\/techblog.vindvejr.dk\/?p=161","title":{"rendered":"Pear upgrade broken"},"content":{"rendered":"<p>I haven&#8217;t been able to upgrade Horde for a few months:<\/p>\n<pre>\r\nError getting channel info from pear.horde.org: Connection to `ssl:\/\/pear.horde.org:443' failed:\r\n<\/pre>\n<p>Today I finally digged into the issue. The short explanation and fix in my case was:<\/p>\n<pre>\r\n# php -r \"print_r(openssl_get_cert_locations());\"\r\nArray\r\n(\r\n    [default_cert_file] => \/usr\/local\/ssl\/cert.pem\r\n    [default_cert_file_env] => SSL_CERT_FILE\r\n    [default_cert_dir] => \/usr\/local\/ssl\/certs\r\n    [default_cert_dir_env] => SSL_CERT_DIR\r\n    [default_private_dir] => \/usr\/local\/ssl\/private\r\n    [default_default_cert_area] => \/usr\/local\/ssl\r\n    [ini_cafile] =>\r\n    [ini_capath] =>\r\n)\r\n# ll \/usr\/local\/ssl\/cert.pem\r\nls: \/usr\/local\/ssl\/cert.pem: No such file or directory\r\n# cd \/usr\/local\/ssl\r\n# wget --no-check-certificate https:\/\/curl.haxx.se\/ca\/cacert.pem\r\n# mv cacert.pem cert.pem\r\n<\/pre>\n<p>Problem solved. Completely unrelated to Horde. Might have been caused by a PHP or OpenSSL upgrade at some point, I guess.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I haven&#8217;t been able to upgrade Horde for a few months: Error getting channel info from pear.horde.org: Connection to `ssl:\/\/pear.horde.org:443&#8242; failed: Today I finally digged into the issue. The short explanation and fix in my case was: # php -r &hellip; <a href=\"https:\/\/techblog.vindvejr.dk\/?p=161\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-161","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/techblog.vindvejr.dk\/index.php?rest_route=\/wp\/v2\/posts\/161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techblog.vindvejr.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techblog.vindvejr.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techblog.vindvejr.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techblog.vindvejr.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=161"}],"version-history":[{"count":1,"href":"https:\/\/techblog.vindvejr.dk\/index.php?rest_route=\/wp\/v2\/posts\/161\/revisions"}],"predecessor-version":[{"id":162,"href":"https:\/\/techblog.vindvejr.dk\/index.php?rest_route=\/wp\/v2\/posts\/161\/revisions\/162"}],"wp:attachment":[{"href":"https:\/\/techblog.vindvejr.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techblog.vindvejr.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techblog.vindvejr.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}