# Add Certificat to JAVA application

**URL:** <https://community.letsencrypt.org/t/add-certificat-to-java-application/58670>\
**Category:** Help\
**Created:** [April 5, 2018, 7:36am UTC](https://community.letsencrypt.org/t/add-certificat-to-java-application/58670 "2018-04-05T07:36:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![celyfed](https://avatars.discourse-cdn.com/v4/letter/c/8dc957/32.png) [@celyfed](https://community.letsencrypt.org/u/celyfed)\
**Post date:** [April 5, 2018, 7:36am UTC](https://community.letsencrypt.org/t/add-certificat-to-java-application/58670/1 "2018-04-05T07:36:37Z")

</div>

Hi,

I am using Let’s Encrypt for SSL on my server for my website.  
A third party (Boxtal) is trying to connect via their JAVA apps but it receives a “Handshake failure”.  
Boxtal is using an old JAVA 7u21.  
From what I have read, Boxtal needs to declare the root certificat somewhere but they do not know what to add, where and how…  
Can someone help, please ?  
I am with Let’s Encrypt Authority X3.  
Thank you,  
Fred.

---

<div class="post-metadata">

**Author:** ![SilverbackNet](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/silverbacknet/32/1032_2.png) [@SilverbackNet](https://community.letsencrypt.org/u/SilverbackNet)\
**Post date:** [April 5, 2018, 9:50am UTC](https://community.letsencrypt.org/t/add-certificat-to-java-application/58670/2 "2018-04-05T09:50:08Z")

</div>

Java7 update 111 and up supports LE. This version is paywalled. Java8u101 and up supports it, and is a relatively painless upgrade, compared to coming from 1.4 or below. You should strongly recommend your client do this, and refuse to support them if they don’t, because Oracle certainly refuses to support those ancient versions of Java.

Java7u21 is 6 years old and full of dozens of easily-exploitable vulnerabilities. You should think twice about even allowing such a client to connect.

That said, you can use keytool to create a custom trust bundle. See [https://drissamri.be/blog/2017/02/22/trusting-lets-encrypt-java/](https://drissamri.be/blog/2017/02/22/trusting-lets-encrypt-java/) The problem is that while getting one workstation to trust is easy, rolling it out to an organization and keeping it in sync with Java releases is incredibly difficult. You can pass this on to your client, but IMHO they need to upgrade ASAP.

---

<div class="post-metadata">

**Author:** ![celyfed](https://avatars.discourse-cdn.com/v4/letter/c/8dc957/32.png) [@celyfed](https://community.letsencrypt.org/u/celyfed)\
**Post date:** [April 5, 2018, 11:42am UTC](https://community.letsencrypt.org/t/add-certificat-to-java-application/58670/3 "2018-04-05T11:42:38Z")

</div>

Thank you ! Your answer is very helpful.  
I will try first to have them create the bundle. But I do not know which certificat to add ? In fact I am lost in Root, intermediate and so on…

Can you help ?

Thank you,

Fred.

---

<div class="post-metadata">

**Author:** ![Patches](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/patches/32/17145_2.png) [@Patches](https://community.letsencrypt.org/u/Patches)\
**Post date:** [April 5, 2018, 11:36pm UTC](https://community.letsencrypt.org/t/add-certificat-to-java-application/58670/4 "2018-04-05T23:36:16Z")

</div>

The only certificate you need right now is the DST Root CA X3:

[https://crt.sh/?d=8395](https://crt.sh/?d=8395)

If you think you’ll still be using this outdated Java version in 2+ years you may also want to import the ISRG Root X1:

[https://letsencrypt.org/certs/isrgrootx1.pem](https://letsencrypt.org/certs/isrgrootx1.pem)

If you just want to add these certificates to the _machine_ and not the _application_ you can use the Java Control Panel and save yourself some CLI work:

[https://docs.oracle.com/javase/7/docs/technotes/guides/jweb/jcp/jcp.html#security](https://docs.oracle.com/javase/7/docs/technotes/guides/jweb/jcp/jcp.html#security)

(I’m assuming the machine is running Windows or macOS because it is using an old Java 7. If it is Linux you really should be using the secure OpenJDK 7 your distribution provides.)

If you want to embed the certificate within your Java _application_ so others it is distributed to won’t need to go to the Java Control Panel, you will need to use keytool as @SilverbackNet linked to.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [May 5, 2018, 11:36pm UTC](https://community.letsencrypt.org/t/add-certificat-to-java-application/58670/5 "2018-05-05T23:36:35Z")

</div>

Closed on May 5, 2018, 11:36pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
