JReport Server supports HTTPS requests in standalone mode. Secure ports for HTTPS requests should use different ports from non-secure ports for HTTP requests. By default, ports 6888 and 6889 are set as the secure ports separately for accessing the JReport Server user console and administration console, respectively. The URL for visiting JReport Server via HTTPS schema is like this:
https://IP_address or localhost:6888
SSL support is disabled by default. You need to enable it and configure corresponding settings in order to use the HTTPS schema to visit the JReport Server UI. This can be done either on the JReport Administration page or in the server.properties file located in the <install_root>\bin directory.
To enable SSL via the JReport Administration page:
- On the Configuration – Service page, check the Enable Secure Socket Layer Connection option.
- In the Secure Port text box, input a port used for visiting the JReport Console page via the HTTPS schema. It should be different from the port for the HTTP schema.
- In the Dashboard Secure Port text box, input a port used for visiting JDashboard via the HTTPS schema. It should be different from the Dashboard port for the HTTP schema.
- In the Secure Administration Port text box, input a port used for visiting the JReport Administration page via the HTTPS schema. It should be different from the Administration port for the HTTP schema.
- In the Keystore File Path text box, input the location of your trusted keystore file.
- In the Keystore Password text box, input the password used to protect the integrity of the keystore.
- Select the type of keystore to be instantiated from the Keystore Type drop-down list. The valid values are JKS and PKCS12.
- Select the encryption/decryption protocol to be used on the socket from the Keystore Protocol drop-down list. The valid values are SSL and TLS.
- Select the X509 algorithm to use from the Keystore Algorithm drop-down list. This defaults to the Sun implementation (SunX509). For IBM JVMs you should use IbmX509.
- Click Save on the page, then restart JReport Server in order for the settings to take effect.
To enable SSL in the server.properties file:
- Open the server.properties file located in the <install_root>\bin directory.
- Set httpserver.ssl.enable to true.
- Set the other properties starting with httpserver.ssl to meet your requirements.
- Save the file, then restart JReport Server in order for the settings to take effect.
- JReport does not provide a keystore file since Jinfonet is not a trusted certificate authority and just provides a Keystore File Path option for you to configure the location of your trusted keystore file. There are many trusted authorities that can provide keystore files. Here is an example of creating a keystore file: http://docs.oracle.com/cd/E19509-01/820-3503/ggsxx/index.html.
- JReport Server Monitor does not support SSL.