When I try to send Push Notifications I get this error: \"Connection refused\", but I don\'t know why... I\'ve uploaded my apns-dev.pem in the same directory as well in the
You don't want a passphrase unless your .pem file requires one. The connection requires peer verification (option verify_peer) turned on. Also, make sure $apnsCert is the valid path to the certificate, you can use an absolute path as a sanity check.
Lastly, this shouldn't effect your ability to connect, but your device token needs to be valid.