diff --git a/interface/web/tools/import_ispconfig.php b/interface/web/tools/import_ispconfig.php index efcf022506e91230df23b9e3c668f32c74c81c75..c43b15b7eb0ef286ff5d66ab8220f1e1d91bb2c1 100644 --- a/interface/web/tools/import_ispconfig.php +++ b/interface/web/tools/import_ispconfig.php @@ -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;