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:
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
- Acquire a new certificate with modern algorithms
- 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
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.
