I. Overview
1. Version description
Report server version | Local printing software version |
---|---|
10.0 | V4.0 / V5.0 |
2. Application scenarios
Use FineReport10.0 in https environment and want to use local printing function.
II. Install the certificate
1. File introduction
Click "Open Certificate Directory" in the menu and enter the ${printing software installation directory}/conf/https folder. You can see that there are two certificate files:
Where localhost.p12 is used internally by the printing software, we only need to care about print_server.cer.
2. Windows
Under Windows, the certificate will be installed automatically when the printing software is installed. In this case, you can skip directly to step 2 (enable https mode).
If the permission is not enough when installing the printing software, or the security software intercepts it, it may cause the certificate installation to fail. At this time, you still need to install it manually.
Double-click print_server.cer, click "Install Certificate" in the pop-up page, and then keep clicking "Next" to complete.
2.3 Mac
The certificate must be installed manually under Mac.
Double-click print_server.cer to open the "Keychain Access". At this time, it is found that the certificate is already under the "Login" list.
Double-click the certificate, and in the "Trust" column, select "Always Trust".
After saving, the installation is complete.
III. Turn on https mode
The local printing software can be switched in http/https mode (cannot support at the same time).
Open the print configuration file print.config, the file is in the C drive directory, the path is as shown in the figure below, there is a "httpsMode" option in the file, set it to true, it is https mode; set it to false, it is http mode.
After setting it to true, read the printing configuration again (or restart the printing software) to make the setting take effect.
IV. Run the test
You can test the local printing function in the https environment.