ios - Apple push notification get an error Authentication failed because the remote party has closed the transport stream -



ios - Apple push notification get an error Authentication failed because the remote party has closed the transport stream -

i follwoing error "authentication failed because remote party has closed transport stream"

after ling code: stream.authenticateasclient(this.applesettings.host, this.certificates, system.security.authentication.sslprotocols.ssl3, false);

it poined valid p.12

void connect() { client = new tcpclient(); //notify connecting var eoc = this.onconnecting; if (eoc != null) eoc(this.applesettings.host, this.applesettings.port); seek { client.connect(this.applesettings.host, this.applesettings.port); } grab (exception ex) { throw new connectionfailureexception("connection host failed", ex); } if (applesettings.skipssl) { networkstream = client.getstream(); } else { stream = new sslstream(client.getstream(), false, new remotecertificatevalidationcallback((sender, cert, chain, sslpolicyerrors) => { homecoming true; }), new localcertificateselectioncallback((sender, targethost, localcerts, remotecert, acceptableissuers) => { homecoming certificate; })); seek { stream.authenticateasclient(this.applesettings.host, this.certificates, system.security.authentication.sslprotocols.ssl3, false); //stream.authenticateasclient(this.applesettings.host); } grab (system.security.authentication.authenticationexception ex) { throw new connectionfailureexception("ssl stream failed authenticate client", ex); } if (!stream.ismutuallyauthenticated) throw new connectionfailureexception("ssl stream failed authenticate", null); if (!stream.canwrite) throw new connectionfailureexception("ssl stream not writable", null); networkstream = stream; } //start reading stream asynchronously reader(); } }

stream.authenticateasclient(this.applesettings.host, this.certificates, system.security.authentication.sslprotocols.ssl3, false);

https://developer.apple.com/news/?id=10222014a

apple force servers no longer supports ssl3. seek alter .default or .tls , should work.

ios apple-push-notifications pushsharp

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -