Skip to main content

Posts

Showing posts from October, 2018

Java Client SSL Setup and Related Errors

This article explains how to configure SSL for a Java client and how to troubleshoot some common errors that may occur during the process. To troubleshoot the issue effectively, please do the following: - Enable the JVM option -Djavax.net.debug=all - Capture the network traffic dump for faster analysis. Certificate Setup Go to your console and access your <JAVA_HOME>/bin/keytool NB :  The default location for saving the generated files is the user home directory. You can change this by specifying a path. STEP 1: Generate a new key (private key) for a Keystore. This either creates a file called <KEYSTORE_NAME>.keystore or update an existing file if it already exists. The CSR which will be presented to a Certificate Authority (CA) will be generated with this key and alias. <JAVA_HOME>/bin/keytool -genkey -alias <KEY_ALIAS> -keyalg RSA -key <KEYSTORE_NAME>.keystore -validity 3650 -keysize 2048 STEP 2: Generate a CSR file to be shared with t