How To: Export CA Import Results (Placement Pending)

How To: Export CA Import Results (Placement Pending)

87
Created On 11/10/26 11:04 AM - Last Modified 11/10/26 13:01 PM


Objective


This article covers how to export CA Import results as this functionality is not currently built in.

There is an Enhancement Request for this functionality here: (ER - CA Import Supports Results Review Prior to Placement ). Please see the alternative method below.



Environment


23.1;23.3;24.1;24.3;25.1 TPP/TLSPDC Other (Technical)

Procedure


  1. Set the CA Import job to preview first.
  2. (Optional) Keep note of your existing MSCA ID in the support tab and then delete it to import all valid certificates.
  3. Run the CA import job and notice there are certificates pending.
  4. Query the TPP database to get vault ID's of pending certificates:
    1. /* 
      This query returns a list of vault IDs associated to
      a specific CA Import job for TPF v24.1 and later. Please update the 
      "Owner" GUID value to match your CA Import job. You can find the GUID 
      by navigating to "Discovery Tree > CA Import job > Support tab".
      If you are using version v23.3 or lower, you must change the table
      name from "v_config_objects" to "config_objects" in the nested where clause.
      */ 
      
      SELECT * FROM store_vault WHERE VaultID in (
      SELECT VaultID FROM store_access WHERE Owner IN (SELECT GUID FROM v_config_objects WHERE ClassName ='CA Import') 
      AND Owner = '{da12e3cd-17ef-4fd1-b575-89773b5ed6dc}'
      );
  5. Use TPP API POST SecretStore/Retrieve endpoint to get PEM data from the vault ID.
  6. Convert PEM data to text format using PowerShell or OpenSSL. PowerShell example below:
    1. $pem = 'MIIFPjCC...'
      
      $bytes = [System.Convert]::FromBase64String($pem)
      
      $cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 -ArgumentList (, $bytes)
      
      $cert | Format-List *
    2. View cert details.
  7. The TPP API call and data conversion can be scripted, and the resulting data can be saved in a CSV file.
  8. Process complete.

 

Another option to find CA Imported certificates is to check the "Origin" attribute on the certificate object, which will show if it's from a CA Import job and the CA Template that was used to issue the certificate (This value may not show as "CA Import - Template Name" if the certificate was already managed by TPP using another method).

 



Actions
  • Print
  • Copy Link

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