I successfully run APNS code in my macbook mode, but it turns out that I cannot run it on another computer:
I checked that they are the same: 1..pem file (specific) 2. Program
Computers cannot work:
Windows 7, XAMPP, OpenSSL, without a firewall
and
EC2 Linux server with open 2195 and 2196
What could be other problems causing an error in my php code?
Unable to connect to 'ssl://gateway.sandbox.push.apple.com:2195'
I know there may be a reason not opening SSL, but I checked phpInfo (), this 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 on 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 '^]'.
php apache openssl apple-push-notifications
Rico chan
source share