I\'m having trouble with using APNS with PHP and getting the following message:
stream_socket_client(): Failed to enable crypto
The problem
I had this problem. Disappeared after giving write permission for 'everyone' for the .pem file.