让 php 不检测 ssl 证书的办法, [php][ssl][证书] |
让 php 不检测 ssl 证书的办法, [php][ssl][证书] |
2018-06-22 10:47:56, Fri
Post
#1
|
|
猫猫猫 Group: Power Cat Posts: 626 Joined: 2006-12-8 Member No.: 2 |
在使用 stream_context_create 函数时,指定选项:
代码 $options['ssl'] = [ 'allow_self_signed' => true, 'verify_peer' => false, 'verify_peer_name' => false, ]; $context = stream_context_create($options); |
|
|
Lo-Fi Version | Time is now: 2024-11-1 20:23 |