Disable certificate verification in PHP SoapClient

前端 未结 4 2146
遇见更好的自我
遇见更好的自我 2020-11-27 03:06

Summary:
Is there a way to force the built in SoapClient-class in PHP to connect over HTTPS to a server with an invalid certificate?

Wh

4条回答
  •  独厮守ぢ
    2020-11-27 03:47

    The correct list for PHP 5.6.8 is

    'ssl' => array('verify_peer_name'=>false, 'allow_self_signed' => true),
    

提交回复
热议问题