APNs push notification with macOS Sierra

前端 未结 4 1902
长情又很酷
长情又很酷 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:24

    You can get certificate from Entrust. Download the entrust_2048_ca.cer certificate from: https://www.entrust.com/get-support/ssl-certificate-support/root-certificate-downloads/. After downloading entrust_2048_ca.cer, I copied it in the same directory where my php script was and it all worked.

    More details here: https://stackoverflow.com/a/28222783/4253579

提交回复
热议问题