I have tried it before using XML-API, more details can be found in the below document:
I don't see REST-API documentation covering certificate management.
This isn't available through the REST API, and I personally tend to tell people to forget that the REST API exists. It's not at feature parity with the XML API, and with it being years since release it doesn't appear like PAN has any intentions to get it there either. I don't see a point in splitting automations across both the REST API and the XML API when the XML API is actually feature complete and the REST API isn't.
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!