Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. Windows.Security.Cryptography.Certificates.Certificate certificate = await GetClientCert();
  2. socket.Control.ClientCertificate = certificate;
  3. await socket.ConnectAsync(new Windows.Networking.HostName(SocksParameters.Host), SocksParameters.Port, SocketProtectionLevel.Tls12);
  4.  
  5. An exception of type 'System.Exception' occurred in mscorlib.ni.dll but was not handled in user code
  6.  
  7. Additional information: The certificate's CN name does not match the passed value. (Exception from HRESULT: 0x800B010F)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement