Skip to main content
ycho
Staff
Staff
June 15, 2022

Technical Tip: How to fix 'Checking certificate key file failed' error when importing the certificate

  • June 15, 2022
  • 0 replies
  • 2880 views
Description This article describes how to fix the error of 'Checking certificate key file failed' or 'Error code 2' when importing the certificate.
Scope FortiAnalyzer.
Solution

When it is needed to renew the local certificate, it is necessary to import the certificate again as newly released, but these error messages can be occurred as shown below screen capture.

 

Error messages: 'Checking certificate key file failed' or 'could not open requested file for reading'.

 

When trying to import the certificate from GUI.

 

ycho_1-1655262460628.png

 

 When trying to import the certificate from CLI.

 

ycho_2-1655262730535.png

 

This is a problem that occurs because FortiAnalyzer does not allow special characters in the certificate, even if it is acceptable for FortiGate.

 

Solution:

 

Remove '.' dot or any special characters in the certificate name and re-import the certificate .