Commit 25376579 authored by Till Brehm's avatar Till Brehm
Browse files

Disable SSL cert check in ISPConfig mail user import tool to allow connections...

Disable SSL cert check in ISPConfig mail user import tool to allow connections to ISPConfig servers with self-signed SSL certificates.
parent faec6219
......@@ -63,10 +63,23 @@ if(isset($_POST['connected'])) {
if($error == '') {
try {
//* Allow connections to self signed SSL certs
$context = stream_context_create(
array(
'ssl' => array (
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
)
);
$client = new SoapClient(null, array('location' => $_POST['remote_server'],
'uri' => $_POST['remote_server'].'/index.php',
'trace' => 1,
'exceptions' => 1));
'exceptions' => 1,
'stream_context' => $context));
if($remote_session_id = $client->login($_POST['remote_user'], $_POST['remote_password'])) {
$connected = 1;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment