Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Scott3
New Contributor

Delete local cert using FortiGate API

Hi,

 

Does anybody know how to delete local certs using the FortiGate API?

 

I found out how to upload them here:

Upload certs using API 

 

But I need to delete the old one first to upload the new one.

 

Thanks

1 Solution
bpozdena_FTNT

Hi @Scott3 ,

 

You can use the HTTP DELETE method.

 

Example:

curl -X 'DELETE' 'https://<FortigateIP>:<FortigatePORT>/api/v2/cmdb/vpn.certificate/local/<CERT_NAME>?access_token=<API_TOKEN>'

 

HTH,
Boris

View solution in original post

2 REPLIES 2
bpozdena_FTNT

Hi @Scott3 ,

 

You can use the HTTP DELETE method.

 

Example:

curl -X 'DELETE' 'https://<FortigateIP>:<FortigatePORT>/api/v2/cmdb/vpn.certificate/local/<CERT_NAME>?access_token=<API_TOKEN>'

 

HTH,
Boris
Scott3

Thank you

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors