IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> 让 php 不检测 ssl 证书的办法, [php][ssl][证书]
猫猫草
post 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);

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 2024-10-17 05:32