Connect via imap library MailKit?

ImapClient client = new ImapClient();
 client.Connect("imap.yandex.ru", 993, true);

In the 2nd line issues.
The remote certificate is invalid according to the results of the authentication.


Tell me how to fix it? He even to the server is not connected
July 9th 19 at 10:26
1 answer
July 9th 19 at 10:28
Only submit to the court on Yandex for invalid certificate.
Look for a lawyer.

Find more questions by tags C#