Showing posts with label J2ee. Show all posts
Showing posts with label J2ee. Show all posts

Configuring two way SSL in Tomcat

Setting up Tomcat to provide self-signed SSL certificates allowing secure client/server communication and relatively easy to set up.  Java provides a handy command-line tool called keytool that you can use to generate keystores.

Generate the Client and Server Keystores : 

By following the instructions below, you will create two keystores:

clientkeystore.jks (for the client to use) and serverkeystore.jks (for the server to use). In order to provide copies of the client’s certificate to the server (and vice versa), you will export public certificates based on the private keys.

img logo

How to re-load properties files without restarting server in java

Re-load properties files without restarting server in Java:

Restart an application-server (servlet-container) means restart all the web-apps that are running under that application-server, with resulting unavailability of services. For this we’ll use the Java class PropertiesConfiguration available in the Apache Common Configuration library. This class allow to bind properties file to a PropertiesConfiguration Java Object through which read the single properties.

img logo