- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
05-07-2025 11:48 AM
Is it possible to export all Certificates at once from a Palo Alto Firewall via API? Without having to pass the names of the certificates from the API call, because in the documentation I've only seen it possible that way.
05-08-2025 05:29 AM
Hi @hcb.pedro ,
I don't think it's possible out of the box.
The API also mentions that the following parameters are required to export the certificates:
Parameters "certificate-name", "format", "include-key" are required while exporting certificate.
As a workaround you can get the list of all the certificates using the API call:
XML API Url
/api/?type=config&action=get&xpath=/config/shared/certificate
Then you can parse the XML response to extract each certificate name and loop through them and export one-by-one using the export API.
Kind regards,
-Kim.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!