gpt4 book ai didi

c# - 调用 SSPI 失败 - 证书被吊销

转载 作者:行者123 更新时间:2023-11-30 20:43:50 28 4
gpt4 key购买 nike

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

{System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> System.ComponentModel.Win32Exception: The certificate is revoked

这是我的代码,我在这里遇到了异常

 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 但它对我没有帮助.我也没有从我的开发者帐户中撤销任何证书。

最佳答案

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

关于c# - 调用 SSPI 失败 - 证书被吊销,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30068193/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com