target set to mh test

This commit is contained in:
systopia 2015-02-12 15:56:48 +01:00
parent e11e2e34cf
commit 6868ff19ee
3 changed files with 27 additions and 3 deletions

View File

@ -9,8 +9,8 @@
// this is the primary variable that you would want to change // this is the primary variable that you would want to change
$target_civicrm = 'http://localhost:8888/mh'; $target_civicrm = 'https://crmtest.muslimehelfen.org';
$proxy_base = 'http://localhost:8888/proxy'; $proxy_base = 'https://ssl.webpack.de/wp11230065.server-he.de';
// default paths, override if you want // default paths, override if you want
$target_rest = $target_civicrm . '/sites/all/modules/civicrm/extern/rest.php'; $target_rest = $target_civicrm . '/sites/all/modules/civicrm/extern/rest.php';

View File

@ -49,8 +49,9 @@ function civiproxy_redirect($url_requested, $parameters) {
curl_setopt($curlSession, CURLOPT_URL, $url); curl_setopt($curlSession, CURLOPT_URL, $url);
curl_setopt($curlSession, CURLOPT_HEADER, 1); curl_setopt($curlSession, CURLOPT_HEADER, 1);
curl_setopt($curlSession, CURLOPT_RETURNTRANSFER,1); curl_setopt($curlSession, CURLOPT_RETURNTRANSFER,1);
curl_setopt($curlSession, CURLOPT_TIMEOUT,30); curl_setopt($curlSession, CURLOPT_TIMEOUT, 30);
curl_setopt($curlSession, CURLOPT_SSL_VERIFYHOST, 1); curl_setopt($curlSession, CURLOPT_SSL_VERIFYHOST, 1);
curl_setopt($curlSession, CURLOPT_CAINFO, 'target.pem');
//Send the request and store the result in an array //Send the request and store the result in an array
$response = curl_exec($curlSession); $response = curl_exec($curlSession);

23
proxy/target.pem Normal file
View File

@ -0,0 +1,23 @@
-----BEGIN CERTIFICATE-----
MIID0zCCArugAwIBAgIJAMAnbzgU64cwMA0GCSqGSIb3DQEBBQUAME8xGzAZBgNV
BAoTEm11c2xpbWVoZWxmZW4gZS5WLjELMAkGA1UEBhMCREUxIzAhBgNVBAMTGmNp
dml0ZXN0Lm11c2xpbWVoZWxmZW4ub3JnMB4XDTEzMDYyMTA2Mzk1N1oXDTIzMDYx
OTA2Mzk1N1owTzEbMBkGA1UEChM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