Report this

What is the reason for this report?

Can't Install SSL with Apache Tomcat Server

Posted on April 4, 2021

Hello, 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:

  1. https://www.digitalocean.com/community/tutorials/how-to-install-an-ssl-certificate-from-a-commercial-certificate-authority

  2. https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04

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. Regards



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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.

Regards, KFSys

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 :

https://www.digitalocean.com/community/tutorials/install-tomcat-9-ubuntu-1804

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

Regards, KFSys

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.