Skip to content

Commit 2537657

Browse files
author
Till Brehm
committed
Disable SSL cert check in ISPConfig mail user import tool to allow connections to ISPConfig servers with self-signed SSL certificates.
1 parent faec621 commit 2537657

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

interface/web/tools/import_ispconfig.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,23 @@
6363

6464
if($error == '') {
6565
try {
66+
67+
//* Allow connections to self signed SSL certs
68+
$context = stream_context_create(
69+
array(
70+
'ssl' => array (
71+
'verify_peer' => false,
72+
'verify_peer_name' => false,
73+
'allow_self_signed' => true
74+
)
75+
)
76+
);
77+
6678
$client = new SoapClient(null, array('location' => $_POST['remote_server'],
6779
'uri' => $_POST['remote_server'].'/index.php',
6880
'trace' => 1,
69-
'exceptions' => 1));
81+
'exceptions' => 1,
82+
'stream_context' => $context));
7083

7184
if($remote_session_id = $client->login($_POST['remote_user'], $_POST['remote_password'])) {
7285
$connected = 1;

0 commit comments

Comments
 (0)