File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments