Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to 'ssl://gateway.sandbox.push.apple.com:2195': (0) #1

Closed
phaeton2040 opened this issue Oct 21, 2014 · 6 comments
Closed

Comments

@phaeton2040
Copy link

Error when trying Yii::app()->apns->send() method.
Tried to use solution from here - immobiliare/ApnsPHP#29
It didn't work for me.

@bryglen
Copy link
Owner

bryglen commented Oct 21, 2014

Pem file is invalid or the port is blocked

@phaeton2040
Copy link
Author

Thanks for the reply.
How to make a valid pem file? I've got two files, public and private keys. And a passphrase for private key.
Port is not blocked. Checked with openssl utility

@phaeton2040
Copy link
Author

Do I need to set 'ProviderCertificatePassphrase' and 'RootCertificationAuthority' in 'options' section in 'main.php' ?

@bryglen
Copy link
Owner

bryglen commented Oct 22, 2014

you can try it. i'm not sure.. all I did is to create a Wrapper for Yii framework using https://github.com/duccio/ApnsPHP/

@thuey
Copy link
Contributor

thuey commented Jun 10, 2015

Just in case someone stumbles across this, calling setProviderCertificatePassphrase worked for me, after combining my cert and key files as described here http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1 under the "Making a PEM File" section.

@bryglen bryglen closed this as completed Jun 11, 2015
@bryglen
Copy link
Owner

bryglen commented Jun 11, 2015

I am now closing this issue. it looks like that the issue is because of the PEM file and not the library itself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants