Fortinet black logo

User Guide

Importing/Getting/Deleting intermediate certificates

Copy Link
Copy Doc ID 2ffc9903-bcb4-11e9-8977-00505692583a:286516
Download PDF

Importing/Getting/Deleting intermediate certificates

Example: Import an intermediate certificate

---
 
- hosts: fortiwebcloud01

name: Execute cloud api

collections:

- fortinet.fortiwebcloud

gather_facts: no

connection: httpapi

vars:

ansible_httpapi_validate_certs: False

ansible_httpapi_use_ssl: True

ansible_httpapi_port: 443

application_name: "YOUR_APP_NAME"

tasks:

- name: Configure intermediate certificates.

cloudwaf_inter_cert_method:

app_name: "{{application_name}}"

action: import

certificate: <YOUR-CERTIFICATE>

Example: Get an intermediate certificate

---
 
- hosts: fortiwebcloud01

name: Execute cloud api

collections:

- fortinet.fortiwebcloud

gather_facts: no

connection: httpapi

vars:

ansible_httpapi_validate_certs: False

ansible_httpapi_use_ssl: True

ansible_httpapi_port: 443

application_name: "YOUR_APP_NAME"

tasks:

- name: Get intermediate certificates.

cloudwaf_inter_cert_method:

app_name: "{{application_name}}"

action: get

Example: Delete an intermediate certificate

---
 
- hosts: fortiwebcloud01

name: Execute cloud api

collections:

- fortinet.fortiwebcloud

gather_facts: no

connection: httpapi

vars:

ansible_httpapi_validate_certs: False

ansible_httpapi_use_ssl: True

ansible_httpapi_port: 443

application_name: "YOUR_APP_NAME"

tasks:

- name: Delete intermediate certificates.

cloudwaf_inter_cert_method:

app_name: "{{application_name}}"

action: delete

id: 1

For more information about intermediate certificates, see Custom Certificate.

Importing/Getting/Deleting intermediate certificates

Example: Import an intermediate certificate

---
 
- hosts: fortiwebcloud01

name: Execute cloud api

collections:

- fortinet.fortiwebcloud

gather_facts: no

connection: httpapi

vars:

ansible_httpapi_validate_certs: False

ansible_httpapi_use_ssl: True

ansible_httpapi_port: 443

application_name: "YOUR_APP_NAME"

tasks:

- name: Configure intermediate certificates.

cloudwaf_inter_cert_method:

app_name: "{{application_name}}"

action: import

certificate: <YOUR-CERTIFICATE>

Example: Get an intermediate certificate

---
 
- hosts: fortiwebcloud01

name: Execute cloud api

collections:

- fortinet.fortiwebcloud

gather_facts: no

connection: httpapi

vars:

ansible_httpapi_validate_certs: False

ansible_httpapi_use_ssl: True

ansible_httpapi_port: 443

application_name: "YOUR_APP_NAME"

tasks:

- name: Get intermediate certificates.

cloudwaf_inter_cert_method:

app_name: "{{application_name}}"

action: get

Example: Delete an intermediate certificate

---
 
- hosts: fortiwebcloud01

name: Execute cloud api

collections:

- fortinet.fortiwebcloud

gather_facts: no

connection: httpapi

vars:

ansible_httpapi_validate_certs: False

ansible_httpapi_use_ssl: True

ansible_httpapi_port: 443

application_name: "YOUR_APP_NAME"

tasks:

- name: Delete intermediate certificates.

cloudwaf_inter_cert_method:

app_name: "{{application_name}}"

action: delete

id: 1

For more information about intermediate certificates, see Custom Certificate.