Rap*_*tor 1 openssl push-notification apple-push-notifications ios
我正在尝试使用以下命令测试我的服务器和Apple的沙盒APNS服务器之间的连接:
$ openssl s_client -connect gateway.sandbox.apple.com:2195 -cert cert.pem -key key.pem
Enter pass phrase for key.pem:
gethostbyname failure
connect:errno=0
Run Code Online (Sandbox Code Playgroud)
是什么意思gethostbyname failure,原因是什么?
在同一台服务器上,telnet到端口2195工作正常:
$ telnet gateway.push.apple.com 2195
Trying 17.149.36.242...
Connected to gateway.push-apple.com.akadns.net.
Escape character is '^]'.
Run Code Online (Sandbox Code Playgroud)
更新:如果我使用IP而不是主机名,它工作正常:
$ openssl s_client -connect 17.149.36.242:2195 -cert cert.pem -key key.pem
Run Code Online (Sandbox Code Playgroud)
OpenSSL无法解析DNS?
| 归档时间: |
|
| 查看次数: |
8863 次 |
| 最近记录: |