The client and server cannot communicate, because they do not possess a common algorithm

0

I am facing issue (The client and server cannot communicate, because they do not possess a common algorithm) when I am trying to connect Gmail account using Imap4 with Enabling TLS 1.1 and 1.2. it is working fine with TLS1.0

it is showing error on code

Imap4Client imap = new Imap4Client();                
imap.ConnectSsl(vHostName, vPortNumber);
imap.Login(vEmailDigitalEmp, vEmailPassword);
imap.Command("capability");
Mailbox inbox = imap.SelectMailbox("inbox")

System.ComponentModel.Win32Exception (0x80004005): The client and server cannot communicate, because they do not possess a common algorithm at System.Net.Security.SslState.ValidateCreateContext(Boolean isServer, String targetHost, SslProtocols enabledSslProtocols, X509Certificate serverCertificate, X509CertificateCollection clientCertificates, Boolean remoteCertRequired, Boolean checkCertRevocationStatus, Boolean checkCertName) at System.Net.Security.SslStream.AuthenticateAsClient(String targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, Boolean checkCertificateRevocation) at ActiveUp.Net.Mail.Imap4Client.DoSslHandShake(SslHandShake sslHandShake) at ActiveUp.Net.Mail.Imap4Client.ConnectSsl(String host, Int32 port, SslHandShake sslHandShake) at ActiveUp.Net.Mail.Imap4Client.ConnectSsl(String host, Int32 port) at EmailOperations ...

c#
email
ssl
tls1.2
email-validation
asked on Stack Overflow Nov 10, 2020 by Arvind Aada • edited Nov 11, 2020 by Arvind Aada

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0