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/Troubleshooting/Error resolution

Hubshare On-Premise - Pfx Certificate cannot be extracted

Last updated on 19 December 2023

Admin
M-Files Hubshare

Overview

In some situations, a user can face an error when trying to apply for his .pfx certificate through Hubshare script. If the error contains RC2-40-CBC this means the .pfx certificate is not up to date and isn't supported by OpenSSL 3.0 which is now used since the 4.0.3 version of Hubshare.

Here is how the error looks like when running the UpdateCertificate.ps1 script:

image.png

Solution

The RC2-40-CBC is not supported anymore when using OpenSSL 3.0 (since v4.0.3 of Hubshare) when we manage certificates for the on-premises installation.

The RC2-40-CBC is a cipher part of the PKCS#12

  1. Acquire a new certificate with modern algorithms
  2. Add the "-legacy" on the 3 red lines shown in the screenshot below.

Warning: The legacy solution is not recommended since we consider this cipher outdated. Proceed at your own risk.

The script that needs to be edited is “NginxFunctions.ps1” can be found in your current Hubshare package in this path: 

/Automation/Scripts/Functions/NginxFunctions.ps1

image.png

Add this at the end of each red highlighted line:

-provider-path “$OpenSSLFolder” -legacy

Note: Be careful as you might copy/paste curly quotes, make sure those are straight quotes.

Save the changes and run the script again.

Still need help?

On this page