How to find out if the .pem file is correct or not.

I created a .pem file that will be used to notify Push Production,

and uploaded to the server.

But when sending a push notification, it gives such an error.

$ fp = stream_socket_client ('ssl: //gateway.push.apple.com: 2195', $ err, $ errstr, 60, STREAM_CLIENT_CONNECT, $ ctx); not working, return failed.

What is this mistake, how to solve it.

Finally, how to find out if the .pem file is correct or not.

+3
source share
1 answer

You can use the "certtool" from the GnuTLS binaries to verify the certificate ( certtool -i --infile cert.pem). Windows binaries are also available .

stream_socket_client. , , .

+3

Source: https://habr.com/ru/post/1756695/


All Articles