The certificate's CN name does not match the passed value

0

I am trying to connect to a remote server using a secure StreamSocket so when I try to connect I get an exception

  Windows.Security.Cryptography.Certificates.Certificate certificate = await GetClientCert();
        socket.Control.ClientCertificate = certificate;
        await socket.ConnectAsync(new Windows.Networking.HostName(SocksParameters.Host), SocksParameters.Port, SocketProtectionLevel.Tls12);

Why i am getting this exception when i try to ConnectAsync() and how can i avoid this? Please help me because i am in desperate position

An exception of type 'System.Exception' occurred in mscorlib.ni.dll but was not handled in user code

Additional information: The certificate's CN name does not match the passed value. (Exception from HRESULT: 0x800B010F)
c#
ssl
certificate
uwp

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0