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

Get a internal error #118

Open
andyzhou opened this issue Dec 9, 2016 · 4 comments
Open

Get a internal error #118

andyzhou opened this issue Dec 9, 2016 · 4 comments

Comments

@andyzhou
Copy link

andyzhou commented Dec 9, 2016

I generate pem file by test_certs tool, and used for my app service.
I get following error when start service:
[error] SSL: cipher: ssl_alert.erl:92:Fatal error: internal error
07:00:30.561 [error] CRASH REPORT Process <0.135.0> with 1 neighbours exited with reason: {tls_alert,"internal error"} in gen_server:init_it/6 line 322

Is my pem file problem or others, can you help me? Thanks.

@ferigis
Copy link
Member

ferigis commented Feb 13, 2017

Hi @andyzhou. Currently we have refactored apns4erl supporting the new APNs API. Maybe you should try it :)
which url are you trying to connect? if you are connecting against api.development.push.apple.com:443 or api.push.apple.com:443 you should consider that APNs service only accepts connections over TLS1.2+. You can check if your openssl library is up to date or at least supports TLS1.2

@monkeyfdude
Copy link

monkeyfdude commented May 3, 2017

@ferigis I get the same error. I tried

openssl s_client -connect gateway.sandbox.push.apple.com:2195 -tls1_2
It returned OK. 

Please suggest how can I resolve this issue. Its pretty urgent issue for us. Please help.

@andyzhou were you able to resolve this issue? Please help me.

@ferigis
Copy link
Member

ferigis commented May 3, 2017

hi @monkeyfdude, which apns4erl version are you using? v2+ is for http2 connections and uses different urls

@monkeyfdude
Copy link

@andyzhou I am using v1. I am trying to migrate to v2 now.

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