03-17-2021 09:53 AM
Hello all,
Do you know if it is possible to check certificate expiration date from API or CLI for Firewall and Panorama.
Ideally also get all the certificate details. I haven't found a way.
Thanks
03-19-2021 09:14 AM
And the equivalent XML API call:
https://{{host}}/api?key={{key}}&type=op&cmd=<show><sslmgr-store><config-certificate-info></config-certificate-info></sslmgr-store></show>
03-19-2021 03:34 AM
Hi there,
On the firewall CLI try show sslmgr-store config-certificate-info will give you certificate details including expiry dates.
cheers,
Seb.
03-19-2021 07:47 AM
Thank you.
Awesome, that's was exactly what I was looking for.
03-19-2021 09:14 AM
And the equivalent XML API call:
https://{{host}}/api?key={{key}}&type=op&cmd=<show><sslmgr-store><config-certificate-info></config-certificate-info></sslmgr-store></show>
12-07-2021 02:03 AM
Hi,
I not found a sslmgr-store option on my panorama
12-07-2021 02:59 AM
Hi @efurlan, another method is to look at the config, such as this example API call:
https://{{host}}/api/?key={{key}}&type=config&action=get&xpath=/config/devices/entry[@name='localhost.localdomain']/template/entry[@name='{{template-name}}']/config/shared/certificate
The response includes the expiry (and begin) dates:
12-07-2021 03:08 AM
You could also do the sslmgr command on a managed-firewall via Panorama:
https://{{host}}/api?key={{key}}&type=op&cmd=<show><sslmgr-store><config-certificate-info></config-certificate-info></sslmgr-store></show>&target={{ngfw-serial-number}}
03-20-2022 02:44 AM
04-05-2022 07:33 AM
Hi Jymmy,
Thank you for the post, I'm using exactly what you posted but looks like it does not send the certificate's name in the response. Do you have any suggestions about how to get a list of SSL Certificates installed?
Response:
04-07-2022 01:10 AM
Hi @FabioSouza, which command are you using, how are you using it (Postman, curl, etc), and is it to Panorama or NGFW directly?
It looks like you are using the "sslmgr-store" command from earlier in the thread, but maybe try the config command later in the thread (here) which includes certificate names in the response.
https://{{host}}/api/?key={{key}}&type=config&action=get&xpath=/config/devices/entry[@name='localhost.localdomain']/template/entry[@name='{{template-name}}']/config/shared/certificate
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!