Overview
Hubshare requires an SSL (TLS) certificate to establish a secure connection over the web, using the HTTPS connection.
Each certificate has a validity period, and the certificate must be renewed before the validity period ends.
This article will show you how to replace an existing Hubshare SSL certificate for your On-Premise environment.
Solution
All these actions need to be done in the server hosting Hubshare.
- Go to the Deployment package folder used to update your Hubshare system.
It should be in C:\Hubshare\Packages and you will have subfolders for each version you used. - Inside of that folder (of the version you are using) you will find the UpdateCertificate.ps1 file
- Run this .ps1 file in Windows PowerShell (ran as an administrator)
You will need to use “cd” to redirect PowerShell to the folder that contains UpdateCertificate.ps1 this (if you're not already in that path.) file and then run that script by writing .\UpdateCertificate.ps1 like shown in the screenshot below. - After running that command, you will get two choices:
- Generate a self-signed TLS certificate (Do not use this option for a production system)
- Register your own trusted certificate.
On a production system, enter "n" for "no" - that a proper trusted certificate is to be used, not a self-signed one:
Note! Self-signed SSL certificate can be only used for local testing. For production vault, trusted SSL certificate is always needed.
Follow the instructions in the Windows PowerShell window.
Once finished, the script will automatically execute a “nssm rotate nginx” command which is meant to reload Nginx. (Nginx is the Hubshare network component using the certificate).
