问题描述
我正在使用 c# corepush nuget 包通过 p8 证书发送 IOS 推送通知。
它在我的本地机器上运行,它是 windows 10。相同的代码在 windows server 2012 上不起作用。
我从服务器收到此错误
The SSL connection Could not be established,see inner exception.
而内部异常是
Authentication Failed because the remote party has closed the transport stream.
System.Net.ServicePointManager.ServerCertificateValidationCallback += (sender,certificate,chain,errors) =>
{
return true;
};
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
不知道还缺少什么以及如何解决。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)