How to install SSL Certificate
Configuration Article | CA-20231016-TS-01 VDG Sense | Software Installation | HTTPS and certificates |
|
Copy the certificate (.crt file) and key (.key file) to the Sense server into the folder: C:\ProgramData\VDG Security\SenseOpenAPI\settings
Now browse to the folder C:\Program Files\VDG Security\Sense\Software\nginx\conf\proxies
Open the file: localhost-ssl.conf for editing.
Modify the following 3 settings in this file:
Set after server_name the correct Sense server IP address.
ssl_certificate "C:\ProgramData\VDG Security\SenseOpenAPI\settings\<your_certificate_name>.crt";
ssl_certificate_key "C:\ProgramData\VDG Security\SenseOpenAPI\settings\<your_key_name>.key";
NOTE: Choose a unique name regarding certificate- and key-name. If these are the same as the defaults they will be overwritten after restarting Sense certificate services.
Save and close the file.
Restart the SenseNginx service via Windows Services app.
Open the browser on the server where the certificate is installed and go to: https://your_server_IP_here
The session should now be secured and with a valid/accepted certificate.
Example with supplied sfx file from costumer
Prerequisites:
Keystore Explorer installed – You can download it from Keystore Explorer.
Your
.pfx
file ready.
Steps:
Open the
.pfx
FileLaunch Keystore Explorer.
Click File > Open and select your
.pfx
file.Enter the password when prompted.
Locate the Certificate
Once the keystore is open, you’ll see entries like
PrivateKeyEntry
orCertificateEntry
.Right-click on the certificate you want to export.
Export as a
.crt
Choose Export > Export Certificate Chain.
In the export dialog:
Select PEM depending on your requirement:
.crt
with PEM format is common (Base64-encoded).
Save the certificate with a
.crt
extension. Normally fullchain.crt
Export the Private Key
If you need the private key separately:
Right-click on the
PrivateKeyEntry
and choose Export > Export Private Key.Export it as a
.key
in PEM format.
Copy files to C:\ProgramData\VDG Security\SenseOpenAPI\settings\
doubleclick the fullchain.crt and install it: