Is there a way to export all the certificates present via the API?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is there a way to export all the certificates present via the API?

L0 Member

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.

1 REPLY 1

Community Team Member

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.

 

LIVEcommunity team member, CISSP
Cheers,
Kiwi
Please help out other users and “Accept as Solution” if a post helps solve your problem !

Read more about how and why to accept solutions.
  • 197 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!