stream_socket_client failing on my server with no way to know more about the error

二次信任 提交于 2019-12-01 18:03:32
StuFF mc

I fixed my problem by generating the .pem this way:

openssl pkcs12 -in key-chain-export.p12 -out apple_push_cert_production.pem -nodes -clcerts

I still would love to know how I could have had a "hint" (from PHP or openssl) that it's the certificate.

AND: Although it fixed the problem on the server side, I then got problems on the client side. Oh well.....

I should also mention I fixed the code on the server so that /v1/log gets something from Apple.

See https://github.com/surrealroad/Safari-Push-Notifications/commit/0ae8a3ad3327a957c332090ea1bfcb146a40c5f3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!