You use a SSL Certificate with Tomcat when you need to request resources via https.
These days you definitely have to use SSL for everything from business websites to APIs. In many cases Tomcat is used as an API server supporting web services.
To use a SSL certificate with Tomcat you need to get a SSL certificate from a recognized Certifying Authority (CA) such as Sectigo (Comodo), RapidSSL, Thawte, and GeoTrust.
Once you get the SSL certificate you need to set it up in your keystore and then configure Tomcat to use it’s SSL Connector.