Fortinet Document Library

Version:


Table of Contents

User Guide

Download PDF
Copy Link

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.