关于PUSH证书的问题

wangliang_wl 发布于 2013/11/12 10:11
阅读 376
收藏 0

@冰力 你好,想跟你请教个问题:Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate unknown in /Applications/XAMPP/xamppfiles/htdocs/index.php on line 23

Warning: stream_socket_client(): Failed to enable crypto in /Applications/XAMPP/xamppfiles/htdocs/index.php on line 23

Warning: stream_socket_client(): unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in

你说这个是证书KEY的问题,但是我测试了,证书是可以用的,openssl s_client -connectgateway.sandbox.push.apple.com:2195   -cert push_developer_cer.pem -keypushKey.pem

我把 $fp=stream_socket_client('ssl://gateway.sandbox.push.apple.com:2195', $err, $errstr, 60, STREAM_CLIENT_CONNECT, $ctx);改成了 // $fp=stream_socket_client("udp://127.0.0.1:1113", $err, $errstr, 60, STREAM_CLIENT_CONNECT, $ctx);就发送成功了


加载中
返回顶部
顶部