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

When cert is expired there is no error about it #12

Open
MaximKeegan opened this issue Dec 28, 2012 · 1 comment
Open

When cert is expired there is no error about it #12

MaximKeegan opened this issue Dec 28, 2012 · 1 comment
Assignees

Comments

@MaximKeegan
Copy link

Fri, 28 Dec 2012 12:04:42 +0600 ApnsPHP[10318]: INFO: Trying ssl://gateway.push.apple.com:2195...
Fri, 28 Dec 2012 12:04:42 +0600 ApnsPHP[10318]: ERROR: Unable to connect to 'ssl://gateway.push.apple.com:2195':  (0)
Fri, 28 Dec 2012 12:04:42 +0600 ApnsPHP[10318]: INFO: Retry to connect (1/3)...
Fri, 28 Dec 2012 12:04:43 +0600 ApnsPHP[10318]: INFO: Trying ssl://gateway.push.apple.com:2195...
Fri, 28 Dec 2012 12:04:43 +0600 ApnsPHP[10318]: ERROR: Unable to connect to 'ssl://gateway.push.apple.com:2195':  (0)
Fri, 28 Dec 2012 12:04:43 +0600 ApnsPHP[10318]: INFO: Retry to connect (2/3)...
Fri, 28 Dec 2012 12:04:44 +0600 ApnsPHP[10318]: INFO: Trying ssl://gateway.push.apple.com:2195...
Fri, 28 Dec 2012 12:04:45 +0600 ApnsPHP[10318]: ERROR: Unable to connect to 'ssl://gateway.push.apple.com:2195':  (0)
Fri, 28 Dec 2012 12:04:45 +0600 ApnsPHP[10318]: INFO: Retry to connect (3/3)...
Fri, 28 Dec 2012 12:04:46 +0600 ApnsPHP[10318]: INFO: Trying ssl://gateway.push.apple.com:2195...
Fri, 28 Dec 2012 12:04:46 +0600 ApnsPHP[10318]: ERROR: Unable to connect to 'ssl://gateway.push.apple.com:2195':  (0)

Fatal error: Uncaught exception 'ApnsPHP_Exception' with message 'Unable to connect to 'ssl://gateway.push.apple.com:2195':  (0)' in /home/sites/api.east-media.ru/html/classes/component/ApnsPHP/Abstract.php:398
Stack trace:
#0 /home/sites/api.east-media.ru/html/classes/component/ApnsPHP/Abstract.php(334): ApnsPHP_Abstract->_connect()

To debug these error i have removed @ on line
$this->_hSocket = @stream_socket_client

to get error description from PHP

stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /html/classes/component/ApnsPHP/Abstract.php at line 393

Can you please post a Warning handler when cert is expired?

@ghost ghost assigned duccio Feb 14, 2013
@duccio
Copy link
Member

duccio commented Feb 14, 2013

Yeah, ASAP.

Thanks!

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

No branches or pull requests

2 participants