By default, the communication between a product and an OPSWAT Central Management server is not encrypted. If HTTPS is set, the server can enforce secure connections between clients and the server on SSL channels. This section describes how to enable SSL for OPSWAT Central Management.
Please be aware that enabling HTTPS on the OPSWAT Central Management server can cause devices that have installed OPSWAT Client to be unable to connect to this server. These devices require reinstallation of OPSWAT Client.
In order to enable HTTPS on OPSWAT Central Management server, a trusted certificate issued by a certificate authority provider or a self-signed certificate must be provided.
See the section below for information on how to install a self-signed server certificate if a trusted certificate is not provided.
Enabling HTTPS for OPSWAT Central Management
Requirement: You need to have a certificate and key file of your certificate on your server, for example, C:\OCM_Keys\your.crt and C:\OCM_Keys\your.key .
To enable HTTPS on OPSWAT Central Management server:
Go to nginx folder under OPSWAT Central Management installation folder (e.g., C:\Program Files\OPSWAT\Central\nginx\conf).
Add the configuration in the below code block into the Server section in nginx.conf file. Note: You need to replace
<PATH_TO_CERT_FILE> with a path to your certificate file, for example C:\OCM_Keys\your.crt> C:\OCM_Keys\your.crt
<PATH_TO_KEY_FILE> with a path to your key file, for example: C:\OCM_Keys\your.key
Using the standard Windows path separator backslash '\' may have unexpected results if the directory or file names start with 'n'. The reason is that the sequence '\n' is interpreted as a new line by nginx.
For example, the following directive:
ssl_certificate "C:\Program Files\OPSWAT\Metadefender Centralmgmt\nginx\your.crt";
will be interpreted by nginx as:
ssl_certificate "C:\Program Files\OPSWAT\Metadefender Centralmgmt
As a workaround, instead of backslash '\', please use:
Forward slash '/' or
Double backslash '\\'.
ssl_certificate "C:\\Program Files\\OPSWAT\\Metadefender Centralmgmt\\nginx\\your.crt";
3. Restart the OPSWAT Central Management by clicking the Restart button on the OPSWAT Central Management tray icon.
4. After the service is restarted, open the OPSWAT Central Management console UI, for example https://localhost:9000, to check whether the console can be loaded successfully
5. Update Device API setting to utilize HTTPS. Go to Server Configuration > Device API and change the Server URL from "http" to "https". Press Save.