summaryrefslogtreecommitdiffstats
path: root/phpMyAdmin-certs.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-06-30 07:39:11 +0200
committerRemi Collet <remi@remirepo.net>2017-06-30 07:39:11 +0200
commit28ecc9a4669bca82a605c95891d1d966d5144ac1 (patch)
tree8a19d2501a53a4756cc3b7b856100bbf917183b9 /phpMyAdmin-certs.patch
parentf8e8f750d36cc44149d1511a1db1a8c43109bf27 (diff)
v4.7.2
Diffstat (limited to 'phpMyAdmin-certs.patch')
-rw-r--r--phpMyAdmin-certs.patch18
1 files changed, 18 insertions, 0 deletions
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);