Troubleshooting Tip: Intermediate CA cannot be exported as PKCS#12 on FortiAuthenticator version 6.6.10
Description
This article describes the reason why, on FortiAuthenticator 6.6.10, exporting an intermediate CA certificate with its private key in PKCS#12 format fails with the error 'Cannot export PKCS#12 certificate'.
Scope
FortiAuthenticator 6.6.10.
Solution
The issue occurs when an intermediate CA is created using a root CA that is hosted on the FortiAuthenticator. When attempting to export the intermediate CA together with its private key and a password in PKCS#12 format, the export fails.
Cannot export PKCS#12 certificate: failed to extract enum CertificateOrPKCS12Certificate ('Certificate | PKCS12Certificate') - variant Certificate (Certificate): TypeError: failed to extract field CertificateOrPKCS12Certificate::Certificate.0, caused by TypeError: 'X509' object is not an instance of 'Certificate' - variant PKCS12Certificate (PKCS12Certificate): TypeError: failed to extract field CertificateOrPKCS12Certificate::PKCS12Certificate.0, caused by TypeError: 'X509' object is not an instance of 'PKCS12Certificate'
This issue is tracked under engineering ticket 1322845. The fix is expected to be included in the following FortiAuthenticator releases:
FortiAuthenticator 6.6.11
FortiAuthenticator 8.0.4
Upgrade FortiAuthenticator to a release containing the fix when available.
