Ios 无法telnet gateway.sandbox.push.apple.com 2195?

Ios 无法telnet gateway.sandbox.push.apple.com 2195?,ios,linux,apple-push-notifications,telnet,Ios,Linux,Apple Push Notifications,Telnet,在我的服务器(Debian 3.2.54-2 x86_64 GNU/Linux)上,我使用此命令检查与APNS(Apple推送通知服务器)的连接: telnet gateway.sandbox.push.apple.com 2195 正在尝试17.172.232.46。。。 正在尝试17.172.232.45。。。 正在尝试17.172.232.18。。。 telnet:无法连接到远程主机:连接超时 ping gateway.sandbox.push.apple.com PING gateway

在我的服务器(Debian 3.2.54-2 x86_64 GNU/Linux)上,我使用此命令检查与APNS(Apple推送通知服务器)的连接:

telnet gateway.sandbox.push.apple.com 2195 正在尝试17.172.232.46。。。 正在尝试17.172.232.45。。。 正在尝试17.172.232.18。。。 telnet:无法连接到远程主机:连接超时 ping gateway.sandbox.push.apple.com PING gateway.sandbox.push-apple.com.akadns.net(17.172.232.46)56(84)字节的数据。 telnet无法帮助我连接。原因是什么

1) 我需要要求管理员配置防火墙,让telnet通过端口2195吗

2) 当我们使用telnet连接到具有给定端口的服务器时,我们这边的哪个端口是开放的? telnet gateway.sandbox.push.apple.com 2195
telnet gateway.sandbox.push.apple.com 2195意味着APN上的端口2195将被打开,那么我们计算机上的哪个端口将被打开以建立连接?

使用OpenSSL并传递有效证书,出于测试目的,您可以使用自签名证书,例如,创建密钥对
crt

$ openssl req -x509 -newkey rsa:2048 -sha256 -nodes -keyout example.key -out example.crt -subj "/CN=example.com" -days 10
然后创建
cert.pem

$ cat example.key example.crt > cert.pem
稍后,您可以使用以下工具进行测试:

$ openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert cert.pem
这将连接并进行握手,但会出现如下验证错误:

CONNECTED(00000006)
...
verify error:num=20:unable to get local issuer certificate

你找到答案了吗?我也有同样的问题;苹果的服务器似乎没有响应gateway.sandbox.push.Apple.com
$ openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert cert.pem
CONNECTED(00000006)
...
verify error:num=20:unable to get local issuer certificate