2016-11-08 1 views
1

Ich versuche, E-Mail mit ASP.NET Core MailKit und Amazon SES zu senden:ASP.NET Core + Amazon SES: Das Remote-Zertifikat ungültig ist nach den Validierungsverfahren

using (SmtpClient client = new SmtpClient(new ProtocolLogger("smtp.log"))) { 
     client.Connect("email-smtp.us-east-1.amazonaws.com", 587, SecureSocketOptions.StartTls); 
     client.Authenticate("myusername", "mypassword"); 
     await client.SendAsync(message); 
     client.Disconnect(true); 
    } 

Ich erhalte den Fehler "Das Remote-Zertifikat ist gemäß dem Überprüfungsverfahren ungültig."

und die Protokolldatei zeigt:

Connected to smtp://email-smtp.us-east-1.amazonaws.com:587/?starttls=always 
S: 220 email-smtp.amazonaws.com ESMTP SimpleEmailService-1737464811 qt5bXhIgVseJaHPspjp4 
C: EHLO [127.0.0.1] 
S: 250-email-smtp.amazonaws.com 
S: 250-8BITMIME 
S: 250-SIZE 10485760 
S: 250-STARTTLS 
S: 250-AUTH PLAIN LOGIN 
S: 250 Ok 
C: STARTTLS 
S: 220 Ready to start TLS 

Was bin ich?

Antwort

Verwandte Themen