none
Apple push notification error RRS feed

  • Question

  • Hi,

    I got following error while calling apple push notification.

    Channel Exception: PushSharp.Apple.ApplePushService -> System.Security.Authentic
    ation.AuthenticationException: A call to SSPI failed, see inner exception. --->
    System.ComponentModel.Win32Exception: The certificate is revoked
       --- End of inner exception stack trace ---
       at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken messag
    e, AsyncProtocolRequest asyncRequest, Exception exception)
       at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToke
    n message, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, A
    syncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 coun
    t, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes
    , AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocol
    Request asyncRequest)
       at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToke
    n message, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, A
    syncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 coun
    t, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes
    , AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocol
    Request asyncRequest)
       at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToke
    n message, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, A
    syncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 coun
    t, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes
    , AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocol
    Request asyncRequest)
       at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToke
    n message, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, A
    syncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 coun
    t, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes
    , AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocol
    Request asyncRequest)
       at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToke
    n message, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, A
    syncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byt
    e[] buffer, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyRes
    ult)
       at System.Net.Security.SslStream.AuthenticateAsClient(String targetHost, X509
    CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, Bool
    ean checkCertificateRevocation)
       at PushSharp.Apple.FeedbackService.Run(ApplePushChannelSettings settings, Can
    cellationToken cancelToken) in d:\Workarea\Work\PushSharp-master\PushSharp-maste
    r\PushSharp.Apple\FeedbackService.cs:line 66
       at PushSharp.Apple.ApplePushService.<>c__DisplayClass4.<.ctor>b__1(Object sta
    te) in d:\Workarea\Work\PushSharp-master\PushSharp-master\PushSharp.Apple\AppleP
    ushService.cs:line 51
    Failure: PushSharp.Apple.ApplePushService -> The maximum number of Send attempts
     to send the notification was reached! -> {"aps":{"alert":"Hello World!","badge"
    :7,"sound":"default"}}

    Any one can tell me the answer for this.

    Friday, April 11, 2014 1:01 PM

Answers

  • The first couple of lines indicate the error.

    Channel Exception: PushSharp.Apple.ApplePushService -> System.Security.Authentic
    ation.AuthenticationException: A call to SSPI failed, see inner exception. --->
    System.ComponentModel.Win32Exception: The certificate is revoked

    The cert has been revoked and therefore cannot be used.  Whether that is your cert or Apple's I don't know.  You'll need to verify your cert and follow up with Apple to work out the issue.

    Michael Taylor
    http://msmvps.com/blogs/p3net

    Friday, April 11, 2014 1:49 PM

All replies

  • The first couple of lines indicate the error.

    Channel Exception: PushSharp.Apple.ApplePushService -> System.Security.Authentic
    ation.AuthenticationException: A call to SSPI failed, see inner exception. --->
    System.ComponentModel.Win32Exception: The certificate is revoked

    The cert has been revoked and therefore cannot be used.  Whether that is your cert or Apple's I don't know.  You'll need to verify your cert and follow up with Apple to work out the issue.

    Michael Taylor
    http://msmvps.com/blogs/p3net

    Friday, April 11, 2014 1:49 PM
  • The issue ended up being related to the export of the p12.

    Tuesday, July 30, 2019 12:25 PM