Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.

Error with pem path : Warning: stream_socket_client() #28

Closed
babour opened this issue Feb 15, 2013 · 5 comments
Closed

Error with pem path : Warning: stream_socket_client() #28

babour opened this issue Feb 15, 2013 · 5 comments

Comments

@babour
Copy link

babour commented Feb 15, 2013

Hi,

I tried to use the bundle but I get an error with the iOS pem file, I put an absolute path to the file but it doesn't seem to work, would it be possible to have a pem path example to put in the config file?

Thanks you,

Here is the error I get when I try to send a push :
[{"message":"Warning: stream_socket_client(): Unable to set private key file `/home/user/MyApplication/src/MyApplication/WebServiceBundle/Certificate/ck.pem' in /home/user/MyApplication/vendor/richsage/rms-push-notifications-bundle/RMS/PushNotificationsBundle/Service/OS/iOSNotification.php line 181","class":"ErrorException","trace":[{"namespace":"","short_class":"","class":"","type":"","function":"","file":"/home/user/MyApplication/vendor/richsage/rms-push-notifications-bundle/RMS/PushNotificationsBundle/Service/OS/iOSNotification.php","line":181,"args":[]},{"namespace":"Symfony\Component\HttpKernel
...

@richsage
Copy link
Owner

Can you show the contents of your config file for the bundle?

@babour
Copy link
Author

babour commented Feb 15, 2013

I don't use the android push yet, the token used for the test is for iOS.

rms_push_notifications:
android:
c2dm:
username: "%android_c2dm_username%"
password: "%android_c2dm_password%"
source: "%android_c2dm_source%"
gcm:
api_key: "%android_gcm_api_key%"
ios:
sandbox: true
pem: "/home/myuser/MyApplication/src/MyApplication/WebServiceBundle/Certificate/ck.pem"
passphrase: mypassphrase

@babour
Copy link
Author

babour commented Feb 17, 2013

I found the problem, the iOS developer had given my the wrong passphrase.

Sorry.

@babour babour closed this as completed Feb 17, 2013
@richsage
Copy link
Owner

@vinosiva sorry, are you reporting a new issue? Please open it separately if so, with further details.

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

No branches or pull requests

3 participants