【问题标题】:A call to SSPI failed - The certificate is revoked对 SSPI 的调用失败 - 证书被吊销
【发布时间】:2015-07-16 02:03:12
【问题描述】:

两天前我的应用程序运行良好。我能够在实时应用程序上完全正常发送推送通知,但突然我开始收到此错误

{System.Security.Authentication.AuthenticationException:对 SSPI 的调用失败,请参阅内部异常。 ---> System.ComponentModel.Win32Exception: 证书被吊销

这是我的代码,我得到了异常

 try
    {
       stream.AuthenticateAsClient(this.appleSettings.Host,
         this.certificates, System.Security.Authentication.SslProtocols.Tls,
        false);                 
    }
 catch (System.Security.Authentication.AuthenticationException ex)
   {
      throw new ConnectionFailureException("SSL Stream Failed 
    to Authenticate as Client", ex);
   }

尝试将 X509Certificate 更改为 X509Certificat2X509CertificateCollection 更改为 X509Certificate2Collection 但这对我没有帮助。我也没有从我的开发者帐户中吊销任何证书。

【问题讨论】:

    标签: c# apple-push-notifications


    【解决方案1】:

    我们遇到了同样的问题,我们通过为 Apple 推送通知生成新的 .p12 证书文件来修复它。证书的有效期为一年,它独立于您的应用程序。因此,您不需要在商店中提高应用增益来解决问题。只需找到您的应用程序的应用程序 ID。使用此应用程序 ID 为推送通知创建一个新的 .p12 证书文件并将其上传到您的服务器上。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-12-30
      • 1970-01-01
      • 1970-01-01
      • 2012-02-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多