Entrust CA Certificate - Error outputting keys and certificates

Hi there guys,

 

anyone using Entrust CA Certificates for Anaplan Data Integration?

 

Following the recommendations from Anaplan's list of Supported Root CA Certificates, I have purchased a S/MIME certificate from Entrust and got a ".p12" certificate downloaded to my computer.

 

When trying to export the Public Certificate following Anapan's guide instructions, I entered the following command:

 

C:\OpenSSL-Win64\bin>openssl pkcs12 -in "My-Downloaded-Entrust-Certificate.p12" -nokeys -out "PublicKey.pem"

 

 

And got the following error:

 

Error outputting keys and certificates
C42C0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto\evp\evp_fetch.c:346:Global default library context, Algorithm (RC2-40-CBC : 0), Properties ()

 

 

Screenshot for more details:

AlejandroGomez_0-1639399121808.png

 

Googling around, seems like this certificate uses some sort of legacy encryption technology no longer supported by Open SSL. 

 

Do any of you use Entrust Certificates or have come across this kind of issue before? Any help is more than welcome at this point.

 

Thanks,

Alex  

Best Answers

  • Update : I was able to resolved the certificate conversion issue. OpenSSL version 1.1.1 does not required legacy.dll file. Command works perfectly fine with older version of OpenSSL(v1.1.1)

  • I found the solution to this issue, as I ran into the same issue with an entrust p12 certificate. The issue is that the newer versions of openssl do not support the old entrust methods as standard, so you need to enable legacy libraries for openssl which they call providers. This is done by changing some values in the application configuration file, then restarting the application.

    If you google enable legacy providers openssl there are a number of guides available, and I have attached a link to one guide below:

    https://www.practicalnetworking.net/practical-tls/openssl-3-and-legacy-providers/

    One final tip which caught me out, is that you need to close your command line window after changing the config file to restart the openssl executable. So if you have made changes to the config file per the link enclosed and the new legacy provider is not showing, try and close your console and reopen to see if that sorts the issue.

Answers