http to https in TOMCAT

76 views Asked by At

I am able to convert http to https by adding below entry in server.xml of the tomcat. My truststore is having password and I don't want to leave like this.

<Connector port="8443" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" disableUploadTimeout="true"
               acceptCount="100" scheme="https" secure="true"
               keystoreFile="/Users/myapp/tomcat/conf/apptruststore.jks" keystorePassword="myP@ssw0rd"
           clientAuth="false" sslProtocol="TLS" />

My question is any other way to implement this ? like keeping it in a server side java code or adding encryption in server.xml.

0

There are 0 answers