Skip to main content

Posts

Showing posts with the label mTLS

mTLS

The client and the server interaction, sequence diagram -  Configuring Keystores (JKS) and Truststores for mTLS in Java Configuring Keystores (JKS) and Truststores for mTLS in Java 1. What Are Keystore and Truststore? Keystore (JKS) : Stores private keys and public certificates. Truststore : Stores trusted CA certificates. Component Purpose Contains Keystore (JKS) Stores private keys and public certificates Private key + Public Certificate Truststore Stores trusted CA certificates CA Certificates + Trusted Public Certificates 2. Generating Keystore and Truststore Step 1: Generate Server Keystore (JKS) keytool -genkeypair -alias server -keyalg RSA -keysize 2048 \ -dname "CN=server, OU=IT, O=Company, L=City, ST=State, C=IN...