照网上的方法,合并好了证书的pem,密码也是对的,然后也写好了推送用的php文件,在终端里php这个文件,报错
报错内容是:
Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
我该怎么解决这个他说的证书的问题?看了网上的这个错误码的解决,不是很明白。有没有知道的能详细告诉一下
$ctx = stream_context_create([
'ssl' => [
'verify_peer' => false,
'verify_peer_name' => false
]
]);
http://www.cocoachina.com/bbs/read.php?tid-1704597.html