Ich habe ein Problem bei der Verbindung mit Office 365 mit Imap und MailKit. Die Ausnahme I erhalten The remote certificate is invalid according to the validation procedure
MailKit C# ImapClient.Connect() zu Office 365 Generierung von Ausnahme: "Das Remote-Zertifikat ist ungültig nach dem Überprüfungsverfahren"
https://github.com/jstedfast/MailKit
Code:
imapClient = new ImapClient();
imapClient.Connect("outlook.office365.com", 993, true);
Gemäß der Dokumentation ich den Client alle Zertifikate akzeptieren setzen kann, aber ich nicht wan't, dies zu tun.
// For demo-purposes, accept all SSL certificates
imapClient.ServerCertificateValidationCallback = (s,c,h,e) => true;
Microsoft Office 365-Einstellungen sollten korrekt sein:
Hat jemand anderes dieses erfahren und es gelöst?