Skip to content

Apple - Authentication failed because the remote party has closed the transport stream. #647

Open
@enobil

Description

@enobil

What version of PushSharp are you using?

3.0.1 and 3.0.1.15 nuget packages.

Describe your issue:

I use Windows 8.1.
When I try to send just a single push notification to Apple push notification servers, I get the following error:
Exception: System.IO.IOException: Authentication failed because the remote party has closed the transport stream.
at PushSharp.Apple.ApnsServiceConnection.d__2.MoveNext()

I checked out ports 2195 and 2196 to be open.
I tried telnet:
telnet gateway.sandbox.push.apple.com 2195
telnet gateway.push.apple.com 2195
telnet feedback.push.apple.com 2196
All connect successfully.

I tried running VS in administrator mode.
I tried installing certificates to my local machine (only machine I use).
There isn't any proxy server my machine is configured to use.

I'm using development (sandbox) certificate, I can't test production certificate right now because I don't have Device Token assigned with production certificate.

I read about SSL3 & TLS and I checked PushSharp sources, TLS is trying to be used when I download sources.

What are the steps required to reproduce this issue?

Use a valid sandbox certificate and assigned Device Token.
Use Windows 8.1
Try to send an Apple push notification

Please provide any Exception Stack Traces

Exception: System.IO.IOException: Authentication failed because the remote party has closed the transport stream.
at PushSharp.Apple.ApnsServiceConnection.d__2.MoveNext()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions