Can't Install SSL with Apache Tomcat Server

Posted April 4, 2021 379 views
JavaLet's Encrypt

We are trying to install SSL on our domain ( which is pointed in Digital Ocean already) through Let’s Encrypt but failing. We have a Java Application installed on our system and we have tried many ways with Let’s Encrypt and Certbot but failing every time. We reached out to the support and they forwarded us the following two options:



We have Ubuntu 20.04 installed on our system with Tomcat.
We also don’t know if any commercial certificate can be installed with this. If Yes, which one will be better.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

Hi @rajdeeproy,

First, I don’t believe you need go for a commercial/paid certificate if you have a small startup application/website. In that sense, Let’s Encrypt should be fine to use.

Regarding the trouble installing it, you mentioned you’ve used Certbot. I take it since it’s failing it is showing some errors, can you please share them with us? From the errors, I might be able to give some pointers on how to proceed.

Additionally, if you can, it would be best to explain the whole process prior to the experienced error.


Hi @rajdeeproy,

from the screenshot you provided me with, I can see a couple of things. First, I don’t see any service listening on port 80 and 443 on IPv4 protocols. Additionally, when using Tomcat you also have Apache enabled and started and I don’t see it running at the moment.

In that regard, when you configured Tomcat did you follow this tutorial to do so :

If so can you please follow the tutorial and see if you have missed something when you were first configuring tomcat.


by Justin Ellingwood
Apache Tomcat is a web server and servlet container that is used to serve Java applications. Tomcat is an open source implementation of the Java Servlet and JavaServer Pages technologies, released by the Apache Software Foundation. In this tutorial, you will install and configure Tomcat 9 on your Ubuntu 18.04 server.