Description
This article describes some common errors when importing certificate in FortiManager or FortAnalyzer using GUI and CLI.
Scope
FortiAnalyzer.
Solution
Error message 'Can not find any certificates to match the certificate being imported.'
Error message 'Check CA certificate file failed!'
Error message 'Checking certificate key file failed.'
Error message 'Input is not a valid CA certificate: Invalid X.509 input” or “Invalid private key'.
"-----BEGIN CERTIFICATE-----" AND "-----END CERTIFICATE-----"
"-----BEGIN PRIVATE KEY-----" AND "-----END PRIVATE KEY-----"
For example:
config system certificate ssh
edit <cert-name>
set certificate "-----BEGIN CERTIFICATE-----
> mPjDQDYkYHKcTrFa6aH7e1w1uM7kdaCAjyAoM7xcmuTrsCeLYfd+BwIDAQABo4ID
> TDDDA0gwPQYJKwYBAAGCNxUVBDAwLgYnKwYBBARCNxUIorRWvO7dYITtkziB9KY0
-----END CERTIFICATE-----"
set private-key “-----BEGIN PRIVATE KEY-----
> MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDBj08sp5++4anG
> z3P668YfhUbKdRF6S42Cg6zn
-----END PRIVATE KEY-----“
end
Error message 'The imported local certificate is invalid.'
Related article:
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.