我正在尝试使用moon apns
向Apple发送推送通知
但得到以下错误
{"An unknown error occurred while processing the certificate"}
{"A call to SSPI failed, see inner exception."}
这是错误行
_apnsStream.BeginRead(response, 0, 6, ReadResponse, new MyAsyncInfo(response, _apnsStream));
我寻找解决方案,但没有成功? 任何人都可以告诉我为什么会收到此错误?
答案 0 :(得分:0)
尝试替换此行:
_apnsStream.AuthenticateAsClient(host, certificates, System.Security.Authentication.SslProtocols.Ssl3, false);
要
_apnsStream.AuthenticateAsClient(host, certificates, System.Security.Authentication.SslProtocols.Default, false);