Upgrade Email tool TLS version

Confluence User - 22 Dec, 2021

We are using Joget Version 5.0.25. Recently the email tool is not working during process flow. We are getting an error :

Caused by: javax.mail.AuthenticationFailedException: 421 4.7.66 TLS 1.0 and 1.1 are not supported. Please upgrade/update your client to support TLS 1.2

    How to upgrade to TLS 1.2 ?

process;emailtools

4


22 Dec, 2021
confluenceUser
confluenceUser

Hi, you can follow the suggestion in https://stackoverflow.com/questions/38205947/sslhandshakeexception-no-appropriate-protocol. Add "-Dmail.smtp.starttls.enable=true -Dmail.smtp.ssl.protocols=TLSv1.2" (key in without the quotation marks) in the Joget Tomcat startup script or batch file.

This issue has also been fixed in Joget v6 and DX:

  • Changes in v7.0.17: Fixed: jw-community - SSLHandshakeException when sending an email using TLS 1.2 in the latest OpenJDK.
  • Changes in v7.0.17: Fixed: joget-enterprise - SSLHandshakeException when sending an email using TLS 1.2 in the latest OpenJDK.
  • Changes in 6.0.34: Fixed: jw-community - SSLHandshakeException when sending an email using TLS 1.2 in latest OpenJDK.
  • Changes in 6.0.32: Fixed: jw-community - SSLHandshakeException when sending an email using TLS 1.2 in latest OpenJDK.

In the latest build, we have upgraded the JavaMail library to version 1.6.2 to support TLS 1.2, since OpenJDK has disabled TLS 1.0 and 1.1 availability by default in the security.properties file. Do consider upgrading to the latest Joget v6.0.34 (released on 14th Dec 2021) or DX v7.0.25 (released on 29 Nov 2021) to benefit from all the latest fixes and security patches. Thank you.

23 Dec, 2021
confluenceUser
1
confluenceUser

Hi Andrew,

Thankyou for the response.

Add "-Dmail.smtp.starttls.enable=true -Dmail.smtp.ssl.protocols=TLSv1.2" (key in without the quotation marks) in the Joget Tomcat startup script or batch file.

 

Can you please advise in which file should I add the above code, catalina.bat or startup.bat ? 


24 Dec, 2021
confluenceUser
confluenceUser

On Windows: joget-start.bat

On Linux: joget-start.sh

It would be an existing "set JAVA_OPTS..." line. Note to maintain the "-javaagent:/opt/joget/wflow//glowroot/glowroot.jar" position in the line as the last parameter in the Joget startup script.

30 Dec, 2021
confluenceUser
confluenceUser

Thank you so much  Andrew, it worked fine.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print