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

Create SSL-SSH-Profile with FortiOs with a specific certificate

Hi! I am trying to automate the creation of a SSL-SSH-PROFILE with the REST API (FortiOS) but I can´t achieve it with the certificate that i won. 

I can create the profile but always create with the CA by default, I don't know what i doing wrong.

 

The doc have to many params that i don´t know which is required and which is not and if i send the right info. 

 

this is the endpoint i am using:

/api/v2/cmdb/firewall/ssl-ssh-profile/?vdom=VDOM_IPS

 

And this is the data i send:

 

{'name': 'certificado', 'comment': 'Generado Automaticamente',  'whitelist': 'enable', 'block-blacklisted-certificates': 'disable', 'server-cert-mode': 'replace', 'use-ssl-server': 'disable', 'server-cert': 'certificado.delos.com.ar', 'ssl-anomalies-log': 'disable', 'ssl-exemptions-log': 'disable', 'ssl-negotiation-log': 'disable', 'rpc-over-https': 'enable', 'mapi-over-https': 'enable'}

 

 

The profile is create but not with the certificate that i won. I appreciate any help that you can give me. 

 

PD: English is not my first languaje, so i apologize for any mistake i have committed.

 

Regards.

0 REPLIES 0
Labels
Top Kudoed Authors