Configure Jasper Reports for SSL
The following instructions can be used for either Windows or Linux
Release : Jasper 6.x
Component : SPCJSP
1. Change directory to <jasperreports_home>/tomcat/custom/keystore (Here <jasperreports_home>= /opt/CA/CABI)
2. keytool -genkeypair -keystore <keystore_file_name> -storepass <StorePassword> -keyalg RSA -keysize 2048 -keypass <KeyPassword> -alias <Alise_name> (add -ext san=dns:<CNAME> for CNAME in DNS)
3. keytool -exportcert -keystore <keystore_file_name> -storepass <StorePassword> -alias <Alise_name> -file <filename>.cer (add -ext san=dns:<CNAME> for CNAME in DNS)
4. keytool -certreq -keystore <keystore_file_name> -storepass <StorePassword> -alias <Alise_name> -keypass <KeyPassword> -file <csr_filename>.csr
5. Share the csr with CA for the certificate.
6. Import the Root-CA and Intermediate-CA using the command
keytool -importcert -keystore <keystore_path>/<keystore_file_name> -storepass <StorePassword> -alias <Root/Intermediate-CA> -file <Root/Intermediate-CA>.cer
7. Import the crt file received from CA using the command
keytool -import -trustcacerts -keystore <keystore_path>/<keystore_file_name> -storepass <StorePassword> -alias <Alise_name> -keypass <Keypassword> -file <crt_file_name>.crt
8. Updated the keystore file name in tomcat/bin/server.xml file and restarted the tomcat.