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 'tls://gateway.sandbox.push.apple.com:2195': Operation timed out (60) #10

Open
wilianto opened this issue Sep 16, 2015 · 6 comments

Comments

@wilianto
Copy link

I get an error

Unable to connect to 'tls://gateway.sandbox.push.apple.com:2195': Operation timed out (60)

But when I try to upload the .pem file to http://apns-gcm.bryantan.info/, I works correctly.
What's wrong with my code or my server configuration?

NOTE: openssl already installed on my apache server

Thank you

@rupsk1607
Copy link

Im also getting the same error. Kindly help me with this
Error: Unable to connect to 'tls://gateway.push.apple.com:2195': Connection timed out (110).

@bryglen
Copy link
Owner

bryglen commented Jan 5, 2016

have you check if the port is not blocked? is your pemfile has password?

@rupsk1607
Copy link

How to check Port is blocked or not? no i didnt set password for Pem file

@rupsk1607
Copy link

did i need to check 2195 is blocked or not. it seems blocked on http://www.networkappers.com/tools/open-port-checker#.Vot9Dvl97cd. Kindly help me to sought out this.

@svok
Copy link

svok commented Aug 10, 2016

Please, add to the Readme an extra option which looks now mandatory.

    'apns' => [
        'class' => 'bryglen\apnsgcm\Apns',
        'environment' => \bryglen\apnsgcm\Apns::ENVIRONMENT_SANDBOX,
        'pemFile' => dirname(__FILE__).'/your_cert_file.pem',
        'options' => [
            'sendRetryTimes' => 5,
            // THIS ONE!!!
            'rootCertificationAuthority' => dirname(__FILE__).'/entrust_2048_ca.cer',
        ]
    ],

@bryglen
Copy link
Owner

bryglen commented Aug 10, 2016

please create a PR, thanks

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

4 participants