arashnorouzi / Moon-APNS

A free open source c# library for sending Apple Push Notifications in any .net application.
http://arashnorouzi.wordpress.com
90 stars 45 forks source link

Critical fix needed for Moon-APNS, Apple blocks SSL3 connections starting Oct 30th 2014 #17

Open patch-e opened 9 years ago

patch-e commented 9 years ago

Apple no longer allows authenticating to the APNS via SSL3. TLS is now the only supported authentication type.

Moon-APNS still authenticates via SSL3 and requires a minor change to switch to TLS.

Currently: _apnsStream.AuthenticateAsClient(host, certificates, System.Security.Authentication.SslProtocols.Ssl3, false); Updated line: _apnsStream.AuthenticateAsClient(host, certificates, System.Security.Authentication.SslProtocols.Tls, false);

dangh commented 9 years ago

thanks @patch-e save my day :smile:

alefsys commented 9 years ago

Hi patch-e, I have done the same. But I did not receive any notification. also no error is occuerd

markeins commented 9 years ago

I tried the update with:

_apnsStream.AuthenticateAsClient(host, certificates, System.Security.Authentication.SslProtocols.Tls, false);

and

_apnsStream.AuthenticateAsClient(host, certificates, System.Security.Authentication.SslProtocols.Default, false);

and still I'm getting the "Authentication failed because the remote party has closed the transport stream" error. Can anybody help me?

AqlaSolutions commented 8 years ago

Anybody here?