Configure Jasper Reports for SSL

book

Article ID: 194448

calendar_today

Updated On:

Products

CA Spectrum CA eHealth

Issue/Introduction

Configure Jasper Reports for SSL

The documentation located at https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/business-management/business-intelligence/6-4-3/administration/configuring-ssl.html discuss how to configure SSL for Jasper. However, the are written for Jasper installed on Windows.

The following instructions can be used for either Windows or Linux

Environment

Release : Jasper 6.x

Component : SPCJSP

Resolution

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.     Shared the csr with CA for the certificate.

6.     Imported the Root-CA and Intermediate-CA using the commandkeytool -importcert -keystore <keystore_path>/<keystore_file_name> -storepass <StorePassword> -alias <Root/Intermediate-CA> -file <Root/Intermediate-CA>.cer

7.     Imported the crt file received from CA usingkeytool -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.