Uploading an updated intermediate device certificate through Panorama fails with the error "Import of <Cert-Name> failed. private key doesn't exist for csr"
2620
Created On 10/26/23 11:53 AM - Last Modified 01/27/25 21:23 PM
Symptom
- Importing a new intermediate certificate with the same name to replace the current intermediate certificate under the same chain to avoid breaking it.
- Import will fail with the error: "Import of <Certificate-Name> failed. private key doesn't exist for csr" :
- Configd.log is showing an internal error when attempting to import :
04:17:53.618 -0700 Error: insert_cert_node(pan_ops_common_cert.c:674): private key doesn't exist for csr
04:17:53.618 -0700 Error: insert_cert_by_path_or_content(pan_ops_common_cert.c:1692): Internal error. Failed to insert xml node
- Both certificates share the same attributes such as issued-to/issued-by, Subject Key Identifier (SKI), and Authority Key Identifier (AKI), but some attributes are updated (e.g. validity date).
Environment
- Palo Alto Networks Firewall
- Panorama
- Supported PAN-OS
- Certificate Management
Resolution
- Upload the new Intermediate certificate to the Panorama with a different name:
- Navigate to Templates > Device > Choose the Template > Certificate Management > Certificates > Import.
- Click on Browse and load the certificate.
- Use a new name in the Certificate Name field
- Delete the old intermediate certificate from the Panorama CLI:
admin@Panorama> configure
admin@Panorama# delete template <Template_Name> config sys vsys<#> certificate <Old-Certificate-Name>Additional Information
Once the steps above are done, the new certificate will take the old one place in the chain.