Samples JDK
package-info.java
1 /**
2  * \brief Client and server do not share public certificates, hence client auth fails.
3  *
4  * Client and server do not share public certificates, hence client auth fails.
5  *
6  * <h1>Setup</h1>
7  * <h2>Generate the Client and Server Keystores</h2>
8  * <ul>
9  * <li>keytool -genkeypair -alias serverkey -keyalg RSA -dname "CN=localhost,OU=Organization Unit,O=Organization,L=City,S=State,C=IN" -keypass password -keystore serverkeystore.jks -storepass password</li>
10  * <li>keytool -genkeypair -alias clientkey -keyalg RSA -dname "CN=localhost,OU=Organization Unit,O=Organization,L=City,S=State,C=IN" -keypass password -storepass password -keystore clientkeystore.jks</li>
11  * </ul>
12  * <h2>Check keystore contents</h2>
13  * <ul>
14  * <li>keytool -list -keystore serverkeystore.jks -storepass password</li>
15  * <li>keytool -list -v -keystore serverkeystore.jks -storepass password -alias serverkey1</li>
16  * <li>keytool -list -v -keystore clientkeystore.jks -storepass password -alias clientkey</li>
17  * <ul>
18  *
19  */
20 package com.freemindcafe.socket.ssl.sample1;