One-way SSL authentication on tomcat using OpenSSL
One-way SSL authentication: Openssl is used for creating private keys and certificates. Create a self-signed certificate for the server. 1. Create a private key openssl genrsa -out serverprivatekey.pem 2048 2. Create an openSSL self-signed certificate for the server using the above private key openssl req -new -x509 -key serverprivatekey.pem -out servercert.pem -days 1095 This prompts you to enter a few pieces of information, use “.” to leave the field blank. When prompted for 'Common Name' specify the hostname of the machine the tomcat runs on. 3. Tomcat currently operates only on JKS format keystore. So generate a keystore in JKS format from above certificate openssl pkcs12 -export -out serverkeystore.pkcs12 -in servercert.pem -inkey serverprivatekey.pem It asks for the export password, and it is recommended to provide a password. 4. Now con...