APNS + PHP “stream_socket_client(): Failed to enable crypto”

前端 未结 8 2070
醉酒成梦
醉酒成梦 2020-12-14 09:33

I\'m having trouble with using APNS with PHP and getting the following message:

stream_socket_client(): Failed to enable crypto

The problem

相关标签:
8条回答
  • 2020-12-14 10:03

    I have this problem because I foolishly forgot to include the file extension (.pem) when supplying the file path for local_cert.

    0 讨论(0)
  • 2020-12-14 10:08

    In my case, the issue was with my mac (OSX Sierra). I uploaded php and cert to my server, ran it, and the notification was delivered.

    0 讨论(0)
提交回复
热议问题