我想连接 ssl 服务器。我附加了带有stream_context_set_option的ssl证书。
但它返回"check that your cafile/capath settings include details of your certificate".
$apnsCert = 'apns-dev.pem';
stream_context_set_option($streamContext, 'ssl', 'local_cert',
dirname(__FILE__).'/'.$apnsCert);
apns-dev.pem 在同一个文件夹中。
如果我在顶部添加,效果很好。我不明白。证书文件的权限是 644