APNs push notification with macOS Sierra

前端 未结 4 2045
长情又很酷
长情又很酷 2021-02-13 12:58

I\'m trying to send my phone a push notification using the simple PHP tool which connects to ssl://gateway.push.apple.com:2195, but the connection fails with the fo

4条回答
  •  不要未来只要你来
    2021-02-13 13:32

    adding to the answer given by @Sandar you can also set the cafile like this

    stream_context_set_option($streamContext, 'ssl', 'cafile', '/path/to/entrust_2048_ca.cer');
    

提交回复
热议问题