The possible solutions could be
Solution1.
Edit the java.security
file and remove the TLSv1
, TLSv1.1
from jdk.tls.disabledAlgorithms
location of java security file is
usr/local/openjdk-11/conf/security/java.security
Solution 2.
The Second solution could be forcing your Mail implementation to use TLSv1.2 like this
// add this line mail.smtp.ssl.protocols=TLSv1.2; in properties
// in your Mail Implementation class
props.put("mail.smtp.starttls.enable","true");
props.put("mail.smtp.ssl.protocols","TLSv1.2");
or your Java Mail impl will look like this
Properties prop = new Properties();
prop.setProperty("mail.smtp.auth", "true");
prop.setProperty("mail.smtp.starttls.enable", "true");
prop.setProperty("mail.smtp.ssl.protocols", "TLSv1.2"); // New Line
prop.setProperty("mail.smtp.ssl.trust", mailUri.getHost());
mailSender.setJavaMailProperties(prop);
These solutions should help :)