'Enable ssl on tomcat service

I have wanted to make my tomcat service connection as secure. So I’ve generated the CSR and got a sign-in from my originations. While generating the CSR, I have for .CSR and Key file. When I do a sign in I have received the below certificates.

ServerCertifictae.crt and ChainBundle2.crt (combination of Root and inetemident.crt files)

To enable the SSL, I have configured the below setting in the server.xml file which will be available in the tomcat config folder. After the config change, I have done the necessary service restarts. But still, tomcat not taking the SSL certificate and could see non-secure connections.

Kindly help me out. What I’m missing here and what needs to be corrected?

<Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol"
           maxThreads="150" SSLEnabled="true" >
    <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
    <SSLHostConfig>
        <Certificate certificateKeyFile="conf/ssl/crt2022/ssl.key"
                     certificateFile="conf/ssl/crt2022/ServerCertificate.crt"
                     certificateChainFile="conf/ssl/crt2022/ChainBundle2.crt"
                     type="RSA" />
    </SSLHostConfig>
</Connector>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source