forked from iusrepo/phpMyAdmin49
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpMyAdmin-certs.patch
18 lines (17 loc) · 968 Bytes
/
phpMyAdmin-certs.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff -up ./libraries/classes/Utils/HttpRequest.php.rpm ./libraries/classes/Utils/HttpRequest.php
--- ./libraries/classes/Utils/HttpRequest.php.rpm 2018-03-01 15:05:29.388126314 +0100
+++ ./libraries/classes/Utils/HttpRequest.php 2018-03-01 15:06:51.922563502 +0100
@@ -139,12 +139,12 @@ class HttpRequest
*
* See https://letsencrypt.org/certificates/
*/
- $certsDir = dirname(__file__) . '/../../certs/';
+ $certsDir = '/etc/pki/tls/';
/* See code below for logic */
if ($ssl == CURLOPT_CAPATH) {
$curlStatus &= curl_setopt($curlHandle, CURLOPT_CAPATH, $certsDir);
} elseif ($ssl == CURLOPT_CAINFO) {
- $curlStatus &= curl_setopt($curlHandle, CURLOPT_CAINFO, $certsDir . 'cacert.pem');
+ $curlStatus &= curl_setopt($curlHandle, CURLOPT_CAINFO, $certsDir . 'cert.pem');
}
$curlStatus &= curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, true);