Skip to content

Commit 552f6e0

Browse files
author
Till Brehm
committed
Merge branch 'patch-1' into 'master'
Update import_ispconfig.php See merge request !644
2 parents fd18c92 + 92d994f commit 552f6e0

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

interface/web/tools/import_ispconfig.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,21 @@
109109

110110

111111
try {
112+
//* Second connections to self signed SSL certs
113+
$context = stream_context_create(
114+
array(
115+
'ssl' => array (
116+
'verify_peer' => false,
117+
'verify_peer_name' => false,
118+
'allow_self_signed' => true
119+
)
120+
)
121+
);
112122
$client = new SoapClient(null, array('location' => $_POST['remote_server'],
113123
'uri' => $_POST['remote_server'].'/index.php',
114124
'trace' => 1,
115-
'exceptions' => 1));
125+
'exceptions' => 1,
126+
'stream_context' => $context));
116127

117128
if(!isset($remote_session_id)) $remote_session_id = $_POST['remote_session_id'];
118129

0 commit comments

Comments
 (0)