Java based SSL connection to Tomcat with server and client certifications

Introduction
In this article, we explain how to make SSL (Secure Sockets Layer) connections from Java code to Tomcat using self-signed certificates on server and client sides. We will look at: key store SSL configurations, System.set properties, steps on how to get Tomcat to work on an SSL connection, server.xml settings, and the Handshake Protocol.

GitHub: https://github.com/SVyatkin/tomcat-ssl-java-example
Continue reading