-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
PushSharp.Apple.ApnsConnectionException: SSL Stream Failed to Authenticate as Client #895
Comments
@raheem52 seeing same this morning too. Had some push notifications go out but occasionally getting this exception. |
Same error withe me |
Same here,
|
Same here |
Just updated my code to force TLS 1.2 and waiting to see if this error shows up again.
|
No errors in about 4 hours so this might have done the trick. Thanks @Sebastian506563 for pointing out TLS issue. |
@dannycabrera where did you put that? I'm having the same issue, just put that line before |
Usually this should put in your |
Thanks @sonergonul. Exactly where I placed it, right before any PushSharp initializing. |
Doing just that didn't fix it for me. I had to run this on the recommended settings to fix the Ciphers on my computer as well: https://www.nartac.com/Products/IISCrypto |
@jlubeck curious, what OS are you running PushSharp on? |
@dannycabrera Windows Server 2012 |
Is there a chance anyone will update the nuget package to include the TLS fix? |
I had this same issue, so checked out the master branch and built the project locally. Then included the references to the required DLLs (Apple and Core) manually into my project. The NuGet package for PushSharp is 3 years old and so does not include the required fixes for TLS 1.2. |
By the way I was doing sandbox Apple VoIP push notifications via gateway.sandbox.push.apple.com - port 2195 feedback.sandbox.push.apple.com - port 2196 They started failing on 23 July. Prior to that they were working fine with the NuGet package. |
oh my god, it has taking my two days. |
love you so much |
The last two links are references to the updated PushSharp nuget. I'm not sure if the original author is trying to monentize PushSharp or if its a branch of someone else's. I ran the nuget packages and got past the current set of Tls errors related to Apple updates. Hope this helps folks. https://nugetmusthaves.com/Package/LogicSoftware.PushSharp |
I am using PushSharp 4.0.10
When I am trying to send iOS notification.
I receive below error
Send Batch Error: Batch ID=1, Error=PushSharp.Apple.ApnsConnectionException: SSL Stream Failed to Authenticate as Client ---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception. ---> Interop+AppleCrypto+SslException: bad protocol version8
--- End of inner exception stack trace ---
at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, ExceptionDispatchInfo exception)
at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
at System.Net.Security.SslStream.AuthenticateAsClient(SslClientAuthenticationOptions sslClientAuthenticationOptions)
at System.Net.Security.SslStream.AuthenticateAsClient(String targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, Boolean checkCertificateRevocation)
at PushSharp.Apple.ApnsConnection.connect()
--- End of inner exception stack trace ---
at PushSharp.Apple.ApnsConnection.connect()
at PushSharp.Apple.ApnsConnection.SendBatch()
The text was updated successfully, but these errors were encountered: