I have a problem. Since my application generates
System.Exception: certificate is revoked. (Exception from HRESULT: 0x80092010)
It is strange that this only happens on a Windows 8.1 phone. On mobile devices, Windows 10 runs the same code.
When verifying a certificate with
Information.ServerCertificate
I get information:
ValidFrom = {28.04.2016 12:16:06 +02:00}
ValidTo = {18.03.2019 07:28:26 +01:00}
This is how I start a socket connection:
HostName host = address.RemoteHostName;
string port = address.RemoteServiceName;
CancellationTokenSource cts = new CancellationTokenSource();
cts.CancelAfter(6 * 1000);
socket.ConnectAsync(host, port, SocketProtectionLevel.Tls12).AsTask(cts.Token).GetAwaiter().GetResult();
Do I have to do something in my application (can I debug or verify it in more detail) or is it strictly related to server certification?
EDIT: 4h later WM10 also started displaying the canceled error, while Android nad iOS has no connection problems (windows also had no problems for the last 1 year). Is there a way to check if the certificate is really revoked?
EDIT 2: I added:
socket.Control.IgnorableServerCertificateErrors.Add(Windows.Security.Cryptography.Certificates.ChainValidationResult.RevocationInformationMissing);
socket.Control.IgnorableServerCertificateErrors.Add(Windows.Security.Cryptography.Certificates.ChainValidationResult.RevocationFailure);
, , . workournd, .