ios - iphone push didn't receive (Window Server/IIS/PHP) -
first of all, not problem certification or dev/distribution.
i used distribution certification, , server url -> gateway.push.apple.com:2195
i tested in local server(apache2), , work!
however, in real server(iis/window server) used same php code, same certification file(.pem), , same iphone application... etc, printed "connected apns message delivered", phone didn't receive message.
one suspect is, tested certification file(.pem) cmd command line 'openssl s_client -connect gateway.push.apple.com:2195 -cert xxxx.pem', returned "verify return code: 20 (unabled local issuer certificate). found solution downloaded entrust certification(.cer) , did "openssl s_client -connect gateway.push.apple.com:2195 -cert xxxx.pem -cafile entrust_2048_ca.cer", , returned 'verify return code :0'. added php code 'stream_context_set_option($ctx, 'ssl', 'cafile', 'entrust_2048_ca.cer');', didn't work same problem.
Comments
Post a Comment