Hello,
I would like to do the equivalent of
# config vpn ssl settings
(settings) # set servercert MyCert
(settings) # end
In REST API
In other terms, change the certificate via API
I would like to know which API call to use.
Right now I'm able to push MyCert on the Fortigate via API.
Thank you
Solved! Go to Solution.
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
Hello,
I tried to reply yesterday but the message disapeared.
Yes, I'm was trying to update the certificate name that is used by the SSL VPN portal sent to the browser or to the Forticlient.
I'm coding a PHP script that relies on curl and REST.
In the mean time I was able to reach my goal by using this call /api/v2/cmdb/vpn.ssl/settings along with a PUT request that update the servercert field.
Prior to that the API call is /api/v2/monitor/vpn-certificate/local/import in order to upload the certificate.
Regards
Hello @expertinet
Thank you for contacting the Fortinet forum community.
Can you please provide more information on the issue:
-Are you trying to update the SSL VPN ca signed certificate under the SSL VPN settings?
-Which API are you referring to?
-Do you want to use some tool to automatically update the SSL VPN certificate? if yes which tool are you using ?
Best Regards,
Manasa.
Hello,
I found my answer today.
Updating the VPN SSL certificate is done by using /api/v2/cmdb/vpn.ssl/settings and PUT the name of the certificate.
I did my code in PHP, my goal was to renew my certificate, a let's encrypt one. I don't use FortiOS 7x
Thank you
Hello,
I tried to reply yesterday but the message disapeared.
Yes, I'm was trying to update the certificate name that is used by the SSL VPN portal sent to the browser or to the Forticlient.
I'm coding a PHP script that relies on curl and REST.
In the mean time I was able to reach my goal by using this call /api/v2/cmdb/vpn.ssl/settings along with a PUT request that update the servercert field.
Prior to that the API call is /api/v2/monitor/vpn-certificate/local/import in order to upload the certificate.
Regards
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1545 | |
1030 | |
749 | |
443 | |
210 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.