Configure Rapid Report Server to Start HTTPS Server
The Rapid Report Server is running at port 8007 over HTTP protocal by default. For some companies, HTTPS is must feature even in the LAN. So, perhaps you are going to enhance the server with SSL/TLS certificate.
It is easy to configure the server to handle HTTPS request.
Prerequisites
- You should have a certificate issued by CA.
- OpenSSL tool
Prepare PKCS12 file.
Let’s say you have already got the certificate files, and have OpenSSL installed on your computer, now please create a file in PKCS12 format.
Example No.1
Created a PKCS12 with two files (private key file, my cert) using OPENSSL tool.
C:\Program Files (x86)\OpenSSL-Win32\bin>openssl pkcs12 -export -out C:\temp\2023\keystore.pkcs12 -inkey C:\temp\2023\privkey.pem -in C:\temp\2023\fullchain.pem
Example No.2
Created a PKCS12 with three files (private key file, my cert, CA cert) using OPENSSL tool on Windows.
C:\Program Files (x86)\OpenSSL-Win32\bin\openssl pkcs12 -export -out C:\temp\2023\keystore.pkcs12 -inkey C:\temp\2023\www_lv2000_com.key -in C:\temp\2023\www_lv2000_com.crt -certfile C:\temp\2023\www_lv2000_com.ca-bundle
Example No.3
Created a PKCS12 with three files (private key file, my cert, CA cert) using OPENSSL tool on Linux.
openssl pkcs12 -export -out keystore.pkcs12 -inkey my_privatekeyfile.key -in star_xyz_abc.crt -certfile DigiCertCA.crt
Copy PKCS12 file to root directory of Rapid Report server
Copy the keystore.pkcs12 file to C:\Program Files (x86)\Rapid Report folder.
Edit rapidreport.properities
Now, please edit the file rapidreport.properities in C:\Program Files (x86)\Rapid Report , add the following lines.
keystoreFile=C:\\Program Files (x86)\\Rapid Report\\keystore.pkcs12
keystorePass=changeit
keystoreType=pkcs12
Please set your own password, not ‘changeit’.
Restart the server
Now, please restart the server, and access the Rapid Report UI via the link similar to https://server-name:8007/