2
兩天前我的應用工作正常。我能夠發送推送通知完全正確的應用程序,但突然我開始得到這個錯誤對SSPI的呼叫失敗 - 證書被吊銷
{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
但它並沒有幫助我。我也沒有從我的開發者賬戶中撤銷任何證書。