Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Examples and how to

How to update Hubshare certificate - On-Premise only

Last updated on 21 November 2023

Admin
M-Files Hubshare

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.

  1. 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.
  2. Inside of that folder (of the version you are using) you will find the UpdateCertificate.ps1 fileimage.png
  3. 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. image.png
  4. 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:
      image.png

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).

Still need help?

On this page