From 28ecc9a4669bca82a605c95891d1d966d5144ac1 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 30 Jun 2017 07:39:11 +0200 Subject: v4.7.2 --- phpMyAdmin-certs.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 phpMyAdmin-certs.patch (limited to 'phpMyAdmin-certs.patch') diff --git a/phpMyAdmin-certs.patch b/phpMyAdmin-certs.patch new file mode 100644 index 0000000..31ca029 --- /dev/null +++ b/phpMyAdmin-certs.patch @@ -0,0 +1,18 @@ +diff -up ./libraries/Util.php.rpm ./libraries/Util.php +--- ./libraries/Util.php.rpm 2017-06-30 07:17:37.000000000 +0200 ++++ ./libraries/Util.php 2017-06-30 07:18:14.000000000 +0200 +@@ -4782,12 +4782,12 @@ class Util + * + * See https://letsencrypt.org/certificates/ + */ +- $certs_dir = dirname(__file__) . '/certs/'; ++ $certs_dir = '/etc/pki/tls/'; + /* See code below for logic */ + if ($ssl == CURLOPT_CAPATH) { + $curl_status &= curl_setopt($curl_handle, CURLOPT_CAPATH, $certs_dir); + } elseif ($ssl == CURLOPT_CAINFO) { +- $curl_status &= curl_setopt($curl_handle, CURLOPT_CAINFO, $certs_dir . 'cacert.pem'); ++ $curl_status &= curl_setopt($curl_handle, CURLOPT_CAINFO, $certs_dir . 'cert.pem'); + } + + $curl_status &= curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER,true); -- cgit