Implement SSL on Java
In order to implement SSL on server we need to do the following: 1. Generate a private key using Keytool. Here is the sample command for keytool keytool -genkey -alias tomcat -keyalg RSA -keystore keystore.jks This will ask several questions. The first question is what is your name and the answer must be the fully qualified name of the domain. For example, if the domain is reveim.com, the name should be reveim.com. If all other information is provided and a password is set, this will generate a file named keystore.jks and store a private-public key pair in this file. The alias name is important and can be any word. This alias name will be required during certificating signing process. The generate keystore.jks file is called the self-signed certificate. This can be used with custom clients. But if the client is a browser, self signed certificate should not be used because user will see a warning message for their first visit. For production use, we need...