Skip to main content
kcapecchi
Staff
Staff
June 6, 2013

Technical Note: Conversion of the 40-bit RC2 encrypted certificate

  • June 6, 2013
  • 0 replies
  • 2812 views
Description
The FortiOS firmware, used on FortiGate units, does not support 40-bit RC2-CBC encryption for Certificates.

If Certificates have been created using this encryption, then any such certificate must be rebuild using the openssl command, to allow its use on the FortiGate unit, running the FortiOS firmware. 

Solution
1. Split your public and private key in two parts:
 
# openssl pkcs12 -in x.pfx -info

where x.pfx is the certificate.

2. Then, reformat the certificate in 3DES using this command:
 
# openssl pkcs12 -export -out x.p12 -in x.crt -inkey x.key -descert

The parameter "-descert" allows to encrypt the cert with "3DES" encryption type.

By default, the software encrypts using the "rc2-40", so it is very important to use parameter "-descert".



Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.