Skip to content

Commit 96e756b

Browse files
committed
updated context
1 parent 33be5ff commit 96e756b

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

src/Plugin.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,12 @@ public static function getSoapClientUrl($address)
237237
*/
238238
public static function getSoapClientParams()
239239
{
240+
$context = stream_context_create([
241+
'ssl' => [
242+
'verify_peer' => false,
243+
'verify_peer_name' => false,
244+
'allow_self_signed' => true,
245+
]]);
240246
return [
241247
'encoding' => 'UTF-8',
242248
'verifypeer' => false,
@@ -245,13 +251,8 @@ public static function getSoapClientParams()
245251
'trace' => 1,
246252
'exceptions' => 1,
247253
'connection_timeout' => 600,
248-
'stream_context' => stream_context_create([
249-
'ssl' => [
250-
'ciphers' => 'RC4-SHA',
251-
'verify_peer' => false,
252-
'verify_peer_name' => false,
253-
'allow_self_signed' => true,
254-
]])
254+
'stream_context' => $context,
255+
'context' => $context,
255256
];
256257
}
257258

0 commit comments

Comments
 (0)