【发布时间】: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 更改为 X509Certificat2 和 X509CertificateCollection 更改为 X509Certificate2Collection 但这对我没有帮助。我也没有从我的开发者帐户中吊销任何证书。
【问题讨论】:
标签: c# apple-push-notifications