mailer icon indicating copy to clipboard operation
mailer copied to clipboard

HandshakeException on send() <= API 24

Open rubenferreira97 opened this issue 2 years ago • 1 comments

Running flutter 3.0.1. When send() is called, on older Android APIs <= 24 a HandshakeException is throw.

HandshakeException (HandshakeException: Handshake error in client (OS Error: 
	CERTIFICATE_VERIFY_FAILED: certificate has expired(handshake.cc:393)))

Exception Line:

@pragma("vm:external-name", "SecureSocket_Handshake")
external int _handshake(SendPort replyPort);

rubenferreira97 avatar May 24 '22 12:05 rubenferreira97

What happens if you enable the option: ignoreBadCertificate on an StmpServer instance?

SmtpServer gmail(String username, String password) =>
    SmtpServer('smtp.gmail.com', username: username, password: password, ignoreBadCertificate: true);

close2 avatar Jul 02 '22 20:07 close2