Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

TLS1.2

User_UW1FSOct 11 2021

Is there any javamail1.4 version that support TLS1.2?
Thanks.

Comments

HAJMEL

Hi
You can add mail.smtps.ssl.protocols property (not specified in API) but its referenced implementation.

User_UW1FS

Hi,
Thank you for your reply. Will that property works for javamail1.4.2?
Thanks,
Juni.

HAJMEL

Hi,
I don't know the complete context of your project but Only tests can confirm this.
I suggest also upgrading to Javamail1.6 that already support TLS1.2.
A

HAJMEL

Hi
this worked ?

User_UW1FS

I can't use javamail 1.6. Must stay with javamail1.4.x to be compatible with EE6.
That is why I am asking if you know if there is javamail1.4.x that works.

HAJMEL

I'll give a try and come back !

HAJMEL
look here
https://stackoverflow.com/questions/411331/using-javamail-with-tls
Kristof Neirynck's answer ( on the bottom)
User_UW1FS

I took a look that link but not seeing any information of what javamail version of 1.4 that I can use with TLSv1.2.
I am trying to find out what javamail1.4.x version that support/work with TLSv1.2 as I have to stay with javamail1.4.x
Try to figure out the x. I know javamail1.4.2 does not work with TLSv1.2.

HAJMEL

There no explicit and official documentation of support of TLS1.2+ by javamail 1.4.x but 1.5.x does.
Java SE 6 Advanced (0 Bytes)Path 1 : Workaround: can you use an alternative JCE implementation (Bouncy Castle)
INFO: If your application runs on Java 1.6 prior to update 111, or earlier, TLS 1.1 and 1.2 are not supported.
Q: any error or debug information to help spot it?
Warning: EE6 is full of vulnerabilities, I hope your app is not exposed.

1 - 9

Post Details

Added on Oct 11 2021
9 comments
973 views