Wednesday, 8 March 2023

Self Signed Certificate for Apache Tomcat

 

Create KeyStore

C:\>mkdir C:\Tomcat\Keystore
keytool -genkey -alias tomcat -keyalg RSA -keystore c:\tomcat\keystore\.keystore

Add below entry to server.xml

<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" maxThreads="150" SSLEnabled="true" scheme="https" secure="true" keystoreFile="C:\Tomcat_Test\keystore\.keystore" keystorePass="oracle123" clientAuth="false" sslProtocol="TLS" />

Restart Tomcat

No comments:

Post a Comment