Uploading an updated intermediate device certificate through Panorama fails with the error "Import of <Cert-Name> failed. private key doesn't exist for csr"

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" :

             The Error

  • 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


  1. 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
  2. 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.

Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u0000008VbrCAE&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail