dongxiang5879 2013-04-17 12:25
浏览 426
已采纳

无法连接到'ssl://gateway.sandbox.push.apple.com:2195'

I sucessfully run the APNS code in my macbook air, but it turns out that I can not run it in my other computer:

I checked that these are the same: 1. .pem file ( to be specific ) 2. Program

The computers can not work are:

Windows 7,XAMPP,OpenSSL supported,No firewall

And

EC2 Linux server with 2195 and 2196 opened

What might be other issues causing that I got this error in my php code?

Unable to connect to 'ssl://gateway.sandbox.push.apple.com:2195'

I know there might be cause by not opening SSL, but I checked the phpInfo(), it should be correct.

openssl 

OpenSSL support enabled 
OpenSSL Library Version OpenSSL 1.0.1c 10 May 2012 
OpenSSL Header Version  OpenSSL 0.9.8x

I tried telnet in EC2 server, it gives:

telnet gateway.push.apple.com 2195
Trying 17.149.36.239...
Connected to gateway.push-apple.com.akadns.net.
Escape character is '^]'.
  • 写回答

3条回答 默认 最新

  • duansao20000508 2013-04-26 10:08
    关注

    Thanks for help, so far I solved the solution.

    The problem is that I used the same pem file for both my cert and the root cert.

    There is a root cert that is different from my own cert, during connection, both cert is used so I have to get the root cert of apple push notification.

    Thanks!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 请问为什么我配置IPsec后PC1 ping不通 PC2,抓包出来数据包也并没有被加密
  • ¥200 求博主教我搞定neo4j简易问答系统,有偿
  • ¥15 nginx的使用与作用
  • ¥100 关于#VijeoCitect#的问题,如何解决?(标签-ar|关键词-数据类型)
  • ¥15 一个矿井排水监控系统的plc梯形图,求各程序段都是什么意思
  • ¥50 安卓10如何在没有root权限的情况下设置开机自动启动指定app?
  • ¥15 ats2837 spi2从机的代码
  • ¥200 wsl2 vllm qwen1.5部署问题
  • ¥100 有偿求数字经济对经贸的影响机制的一个数学模型,弄不出来已经快要碎掉了
  • ¥15 数学建模数学建模需要