我从某些设备上获得了一些异常报告,这些设备似乎表明存在问题(可能与根证书有关?)以及最近取代旧证书的新SSL证书。
我正在使用Xamarin.Android的HTTPS网络服务。
The inner exception message is:
Invalid certificate received from server. Error code: 0xffffffff800b010f
输入:Mono.Security.Protocol.Tls.TlsException
内部堆栈跟踪:
at Mono.Security.Protocol.Tls.RecordProtocol.EndReceiveRecord (System.IAsyncResult asyncResult) [0x00037] in <38886d9bdf1645fe964e888ca7d23cc4>:0 \n at Mono.Security.Protocol.Tls.SslClientStream.SafeEndReceiveRecord (System.IAsyncResult ar, System.Boolean ignoreEmpty) [0x00000] in <38886d9bdf1645fe964e888ca7d23cc4>:0 \n at Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker (System.IAsyncResult result) [0x00071] in <38886d9bdf1645fe964e888ca7d23cc4>:0
外部异常:
System.IO.IOException
The authentication or decryption has failed.
at Mono.Security.Protocol.Tls.SslClientStream.EndNegotiateHandshake (System.IAsyncResult result) [0x00032] in <38886d9bdf1645fe964e888ca7d23cc4>:0 \n at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (System.IAsyncResult asyncResult) [0x0000c] in <38886d9bdf1645fe964e888ca7d23cc4>:0
这个特殊的例子发生在搭载Android 7.0的三星Galaxy A5上。我以为Digicert Root证书可以在这样的设备上运行吗?还有什么可能,它是否有可能是一个短暂的错误?