W3cubDocs

/Ansible

fortinet.fortios.fortios_firewall_ssl_ssh_profile – Configure SSL/SSH protocol options in Fortinet’s FortiOS and FortiGate.

Note

This plugin is part of the fortinet.fortios collection (version 2.1.2).

You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install fortinet.fortios.

To use it in a playbook, specify: fortinet.fortios.fortios_firewall_ssl_ssh_profile.

New in version 2.10: of fortinet.fortios

Synopsis

  • This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the user to set and modify firewall feature and ssl_ssh_profile category. Examples include all parameters and values need to be adjusted to datasources before usage. Tested with FOS v6.0.0

Requirements

The below requirements are needed on the host that executes this module.

  • ansible>=2.9.0

Parameters

Parameter Choices/Defaults Comments
access_token
string
Token-based authentication. Generated from GUI of Fortigate.
enable_log
boolean
    Choices:
  • no
  • yes
Enable/Disable logging for task.
firewall_ssl_ssh_profile
dictionary
Configure SSL/SSH protocol options.
allowlist
string
    Choices:
  • enable
  • disable
Enable/disable exempting servers by FortiGuard allowlist.
block_blacklisted_certificates
string
    Choices:
  • disable
  • enable
Enable/disable blocking SSL-based botnet communication by FortiGuard certificate blacklist.
block_blocklisted_certificates
string
    Choices:
  • disable
  • enable
Enable/disable blocking SSL-based botnet communication by FortiGuard certificate blocklist.
caname
string
CA certificate used by SSL Inspection. Source vpn.certificate.local.name.
comment
string
Optional comments.
dot
dictionary
Configure DNS over TLS options.
cert_validation_failure
string
    Choices:
  • allow
  • block
  • ignore
Action based on certificate validation failure.
cert_validation_timeout
string
    Choices:
  • allow
  • block
  • ignore
Action based on certificate validation timeout.
client_certificate
string
    Choices:
  • bypass
  • inspect
  • block
Action based on received client certificate.
expired_server_cert
string
    Choices:
  • allow
  • block
  • ignore
Action based on server certificate is expired.
proxy_after_tcp_handshake
string
    Choices:
  • enable
  • disable
Proxy traffic after the TCP 3-way handshake has been established (not before).
revoked_server_cert
string
    Choices:
  • allow
  • block
  • ignore
Action based on server certificate is revoked.
sni_server_cert_check
string
    Choices:
  • enable
  • strict
  • disable
Check the SNI in the client hello message with the CN or SAN fields in the returned server certificate.
status
string
    Choices:
  • disable
  • deep-inspection
Configure protocol inspection status.
unsupported_ssl_cipher
string
    Choices:
  • allow
  • block
Action based on the SSL cipher used being unsupported.
unsupported_ssl_negotiation
string
    Choices:
  • allow
  • block
Action based on the SSL negotiation used being unsupported.
untrusted_server_cert
string
    Choices:
  • allow
  • block
  • ignore
Action based on server certificate is not issued by a trusted CA.
ftps
dictionary
Configure FTPS options.
allow_invalid_server_cert
string
    Choices:
  • enable
  • disable
When enabled, allows SSL sessions whose server certificate validation failed.
cert_validation_failure
string
    Choices:
  • allow
  • block
  • ignore
Action based on certificate validation failure.
cert_validation_timeout
string
    Choices:
  • allow
  • block
  • ignore
Action based on certificate validation timeout.
client_cert_request
string
    Choices:
  • bypass
  • inspect
  • block
Action based on client certificate request.
client_certificate
string
    Choices:
  • bypass
  • inspect
  • block
Action based on received client certificate.
expired_server_cert
string
    Choices:
  • allow
  • block
  • ignore
Action based on server certificate is expired.
invalid_server_cert
string
    Choices:
  • allow
  • block
Allow or block the invalid SSL session server certificate.
ports
integer
Ports to use for scanning (1 - 65535).
revoked_server_cert
string
    Choices:
  • allow
  • block
  • ignore
Action based on server certificate is revoked.
sni_server_cert_check
string
    Choices:
  • enable
  • strict
  • disable
Check the SNI in the client hello message with the CN or SAN fields in the returned server certificate.
status
string
    Choices:
  • disable
  • deep-inspection
Configure protocol inspection status.
unsupported_ssl
string
    Choices:
  • bypass
  • inspect
  • block
Action based on the SSL encryption used being unsupported.
unsupported_ssl_cipher
string
    Choices:
  • allow
  • block
Action based on the SSL cipher used being unsupported.
unsupported_ssl_negotiation
string
    Choices:
  • allow
  • block
Action based on the SSL negotiation used being unsupported.
untrusted_cert
string
    Choices:
  • allow
  • block
  • ignore
Allow, ignore, or block the untrusted SSL session server certificate.
untrusted_server_cert
string
    Choices:
  • allow
  • block
  • ignore
Allow, ignore, or block the untrusted SSL session server certificate.
https
dictionary
Configure HTTPS options.
allow_invalid_server_cert
string
    Choices:
  • enable
  • disable
When enabled, allows SSL sessions whose server certificate validation failed.
cert_probe_failure
string
    Choices:
  • allow
  • block
Action based on certificate probe failure.
cert_validation_failure
string
    Choices:
  • allow
  • block
  • ignore
Action based on certificate validation failure.
cert_validation_timeout
string
    Choices:
  • allow
  • block
  • ignore
Action based on certificate validation timeout.
client_cert_request
string
    Choices:
  • bypass
  • inspect
  • block
Action based on client certificate request.
client_certificate
string
    Choices:
  • bypass
  • inspect
  • block
Action based on received client certificate.
expired_server_cert
string
    Choices:
  • allow
  • block
  • ignore
Action based on server certificate is expired.
invalid_server_cert
string
    Choices:
  • allow
  • block
Allow or block the invalid SSL session server certificate.
ports
integer
Ports to use for scanning (1 - 65535).
proxy_after_tcp_handshake
string
    Choices:
  • enable
  • disable
Proxy traffic after the TCP 3-way handshake has been established (not before).
revoked_server_cert
string
    Choices:
  • allow
  • block
  • ignore
Action based on server certificate is revoked.
sni_server_cert_check
string
    Choices:
  • enable
  • strict
  • disable
Check the SNI in the client hello message with the CN or SAN fields in the returned server certificate.
status
string
    Choices:
  • disable
  • certificate-inspection
  • deep-inspection
Configure protocol inspection status.
unsupported_ssl
string
    Choices:
  • bypass
  • inspect
  • block
Action based on the SSL encryption used being unsupported.
unsupported_ssl_cipher
string
    Choices:
  • allow
  • block
Action based on the SSL cipher used being unsupported.
unsupported_ssl_negotiation
string
    Choices:
  • allow
  • block
Action based on the SSL negotiation used being unsupported.
untrusted_cert
string
    Choices:
  • allow
  • block
  • ignore
Allow, ignore, or block the untrusted SSL session server certificate.
untrusted_server_cert
string
    Choices:
  • allow
  • block
  • ignore
Allow, ignore, or block the untrusted SSL session server certificate.
imaps
dictionary
Configure IMAPS options.
allow_invalid_server_cert
string
    Choices:
  • enable
  • disable
When enabled, allows SSL sessions whose server certificate validation failed.
cert_validation_failure
string
    Choices:
  • allow
  • block
  • ignore
Action based on certificate validation failure.
cert_validation_timeout
string
    Choices:
  • allow
  • block
  • ignore
Action based on certificate validation timeout.
client_cert_request
string
    Choices:
  • bypass
  • inspect
  • block
Action based on client certificate request.
client_certificate
string
    Choices:
  • bypass
  • inspect
  • block
Action based on received client certificate.
expired_server_cert
string
    Choices:
  • allow
  • block
  • ignore
Action based on server certificate is expired.
invalid_server_cert
string
    Choices:
  • allow
  • block
Allow or block the invalid SSL session server certificate.
ports
integer
Ports to use for scanning (1 - 65535).
proxy_after_tcp_handshake
string
    Choices:
  • enable
  • disable
Proxy traffic after the TCP 3-way handshake has been established (not before).
revoked_server_cert
string
    Choices:
  • allow
  • block
  • ignore
Action based on server certificate is revoked.
sni_server_cert_check
string
    Choices:
  • enable
  • strict
  • disable
Check the SNI in the client hello message with the CN or SAN fields in the returned server certificate.
status
string
    Choices:
  • disable
  • deep-inspection
Configure protocol inspection status.
unsupported_ssl
string
    Choices:
  • bypass
  • inspect
  • block
Action based on the SSL encryption used being unsupported.
unsupported_ssl_cipher
string
    Choices:
  • allow
  • block
Action based on the SSL cipher used being unsupported.
unsupported_ssl_negotiation
string
    Choices:
  • allow
  • block
Action based on the SSL negotiation used being unsupported.
untrusted_cert
string
    Choices:
  • allow
  • block
  • ignore
Allow, ignore, or block the untrusted SSL session server certificate.
untrusted_server_cert
string
    Choices:
  • allow
  • block
  • ignore
Allow, ignore, or block the untrusted SSL session server certificate.
mapi_over_https
string
    Choices:
  • enable
  • disable
Enable/disable inspection of MAPI over HTTPS.
name
string / required
Name.
pop3s
dictionary
Configure POP3S options.
allow_invalid_server_cert
string
    Choices:
  • enable
  • disable
When enabled, allows SSL sessions whose server certificate validation failed.
cert_validation_failure
string
    Choices:
  • allow
  • block
  • ignore
Action based on certificate validation failure.
cert_validation_timeout
string
    Choices:
  • allow
  • block
  • ignore
Action based on certificate validation timeout.
client_cert_request
string
    Choices:
  • bypass
  • inspect
  • block
Action based on client certificate request.
client_certificate
string
    Choices:
  • bypass
  • inspect
  • block
Action based on received client certificate.
expired_server_cert
string
    Choices:
  • allow
  • block
  • ignore
Action based on server certificate is expired.
invalid_server_cert
string
    Choices:
  • allow
  • block
Allow or block the invalid SSL session server certificate.
ports
integer
Ports to use for scanning (1 - 65535).
proxy_after_tcp_handshake
string
    Choices:
  • enable
  • disable
Proxy traffic after the TCP 3-way handshake has been established (not before).
revoked_server_cert
string
    Choices:
  • allow
  • block
  • ignore
Action based on server certificate is revoked.
sni_server_cert_check
string
    Choices:
  • enable
  • strict
  • disable
Check the SNI in the client hello message with the CN or SAN fields in the returned server certificate.
status
string
    Choices:
  • disable
  • deep-inspection
Configure protocol inspection status.
unsupported_ssl
string
    Choices:
  • bypass
  • inspect
  • block
Action based on the SSL encryption used being unsupported.
unsupported_ssl_cipher
string
    Choices:
  • allow
  • block
Action based on the SSL cipher used being unsupported.
unsupported_ssl_negotiation
string
    Choices:
  • allow
  • block
Action based on the SSL negotiation used being unsupported.
untrusted_cert
string
    Choices:
  • allow
  • block
  • ignore
Allow, ignore, or block the untrusted SSL session server certificate.
untrusted_server_cert
string
    Choices:
  • allow
  • block
  • ignore
Allow, ignore, or block the untrusted SSL session server certificate.
rpc_over_https
string
    Choices:
  • enable
  • disable
Enable/disable inspection of RPC over HTTPS.
server_cert
string
Certificate used by SSL Inspection to replace server certificate. Source vpn.certificate.local.name.
server_cert_mode
string
    Choices:
  • re-sign
  • replace
Re-sign or replace the server"s certificate.
smtps
dictionary
Configure SMTPS options.
allow_invalid_server_cert
string
    Choices:
  • enable
  • disable
When enabled, allows SSL sessions whose server certificate validation failed.
cert_validation_failure
string
    Choices:
  • allow
  • block
  • ignore
Action based on certificate validation failure.
cert_validation_timeout
string
    Choices:
  • allow
  • block
  • ignore
Action based on certificate validation timeout.
client_cert_request
string
    Choices:
  • bypass
  • inspect
  • block
Action based on client certificate request.
client_certificate
string
    Choices:
  • bypass
  • inspect
  • block
Action based on received client certificate.
expired_server_cert
string
    Choices:
  • allow
  • block
  • ignore
Action based on server certificate is expired.
invalid_server_cert
string
    Choices:
  • allow
  • block
Allow or block the invalid SSL session server certificate.
ports
integer
Ports to use for scanning (1 - 65535).
proxy_after_tcp_handshake
string
    Choices:
  • enable
  • disable
Proxy traffic after the TCP 3-way handshake has been established (not before).
revoked_server_cert
string
    Choices:
  • allow
  • block
  • ignore
Action based on server certificate is revoked.
sni_server_cert_check
string
    Choices:
  • enable
  • strict
  • disable
Check the SNI in the client hello message with the CN or SAN fields in the returned server certificate.
status
string
    Choices:
  • disable
  • deep-inspection
Configure protocol inspection status.
unsupported_ssl
string
    Choices:
  • bypass
  • inspect
  • block
Action based on the SSL encryption used being unsupported.
unsupported_ssl_cipher
string
    Choices:
  • allow
  • block
Action based on the SSL cipher used being unsupported.
unsupported_ssl_negotiation
string
    Choices:
  • allow
  • block
Action based on the SSL negotiation used being unsupported.
untrusted_cert
string
    Choices:
  • allow
  • block
  • ignore
Allow, ignore, or block the untrusted SSL session server certificate.
untrusted_server_cert
string
    Choices:
  • allow
  • block
  • ignore
Allow, ignore, or block the untrusted SSL session server certificate.
ssh
dictionary
Configure SSH options.
inspect_all
string
    Choices:
  • disable
  • deep-inspection
Level of SSL inspection.
ports
integer
Ports to use for scanning (1 - 65535).
proxy_after_tcp_handshake
string
    Choices:
  • enable
  • disable
Proxy traffic after the TCP 3-way handshake has been established (not before).
ssh_algorithm
string
    Choices:
  • compatible
  • high-encryption
Relative strength of encryption algorithms accepted during negotiation.
ssh_policy_check
string
    Choices:
  • disable
  • enable
Enable/disable SSH policy check.
ssh_tun_policy_check
string
    Choices:
  • disable
  • enable
Enable/disable SSH tunnel policy check.
status
string
    Choices:
  • disable
  • deep-inspection
Configure protocol inspection status.
unsupported_version
string
    Choices:
  • bypass
  • block
Action based on SSH version being unsupported.
ssl
dictionary
Configure SSL options.
allow_invalid_server_cert
string
    Choices:
  • enable
  • disable
When enabled, allows SSL sessions whose server certificate validation failed.
cert_validation_failure
string
    Choices:
  • allow
  • block
  • ignore
Action based on certificate validation failure.
cert_validation_timeout
string
    Choices:
  • allow
  • block
  • ignore
Action based on certificate validation timeout.
client_cert_request
string
    Choices:
  • bypass
  • inspect
  • block
Action based on client certificate request.
client_certificate
string
    Choices:
  • bypass
  • inspect
  • block
Action based on received client certificate.
expired_server_cert
string
    Choices:
  • allow
  • block
  • ignore
Action based on server certificate is expired.
inspect_all
string
    Choices:
  • disable
  • certificate-inspection
  • deep-inspection
Level of SSL inspection.
invalid_server_cert
string
    Choices:
  • allow
  • block
Allow or block the invalid SSL session server certificate.
revoked_server_cert
string
    Choices:
  • allow
  • block
  • ignore
Action based on server certificate is revoked.
sni_server_cert_check
string
    Choices:
  • enable
  • strict
  • disable
Check the SNI in the client hello message with the CN or SAN fields in the returned server certificate.
unsupported_ssl
string
    Choices:
  • bypass
  • inspect
  • block
Action based on the SSL encryption used being unsupported.
unsupported_ssl_cipher
string
    Choices:
  • allow
  • block
Action based on the SSL cipher used being unsupported.
unsupported_ssl_negotiation
string
    Choices:
  • allow
  • block
Action based on the SSL negotiation used being unsupported.
untrusted_cert
string
    Choices:
  • allow
  • block
  • ignore
Allow, ignore, or block the untrusted SSL session server certificate.
untrusted_server_cert
string
    Choices:
  • allow
  • block
  • ignore
Allow, ignore, or block the untrusted SSL session server certificate.
ssl_anomalies_log
string
    Choices:
  • disable
  • enable
Enable/disable logging SSL anomalies.
ssl_exempt
list / elements=string
Servers to exempt from SSL inspection.
address
string
IPv4 address object. Source firewall.address.name firewall.addrgrp.name.
address6
string
IPv6 address object. Source firewall.address6.name firewall.addrgrp6.name.
fortiguard_category
integer
FortiGuard category ID.
id
integer / required
ID number.
regex
string
Exempt servers by regular expression.
type
string
    Choices:
  • fortiguard-category
  • address
  • address6
  • wildcard-fqdn
  • regex
Type of address object (IPv4 or IPv6) or FortiGuard category.
wildcard_fqdn
string
Exempt servers by wildcard FQDN. Source firewall.wildcard-fqdn.custom.name firewall.wildcard-fqdn.group.name.
ssl_exemptions_log
string
    Choices:
  • disable
  • enable
Enable/disable logging SSL exemptions.
ssl_negotiation_log
string
    Choices:
  • disable
  • enable
Enable/disable logging SSL negotiation.
ssl_server
list / elements=string
SSL servers.
ftps_client_cert_request
string
    Choices:
  • bypass
  • inspect
  • block
Action based on client certificate request during the FTPS handshake.
ftps_client_certificate
string
    Choices:
  • bypass
  • inspect
  • block
Action based on received client certificate during the FTPS handshake.
https_client_cert_request
string
    Choices:
  • bypass
  • inspect
  • block
Action based on client certificate request during the HTTPS handshake.
https_client_certificate
string
    Choices:
  • bypass
  • inspect
  • block
Action based on received client certificate during the HTTPS handshake.
id
integer / required
SSL server ID.
imaps_client_cert_request
string
    Choices:
  • bypass
  • inspect
  • block
Action based on client certificate request during the IMAPS handshake.
imaps_client_certificate
string
    Choices:
  • bypass
  • inspect
  • block
Action based on received client certificate during the IMAPS handshake.
ip
string
IPv4 address of the SSL server.
pop3s_client_cert_request
string
    Choices:
  • bypass
  • inspect
  • block
Action based on client certificate request during the POP3S handshake.
pop3s_client_certificate
string
    Choices:
  • bypass
  • inspect
  • block
Action based on received client certificate during the POP3S handshake.
smtps_client_cert_request
string
    Choices:
  • bypass
  • inspect
  • block
Action based on client certificate request during the SMTPS handshake.
smtps_client_certificate
string
    Choices:
  • bypass
  • inspect
  • block
Action based on received client certificate during the SMTPS handshake.
ssl_other_client_cert_request
string
    Choices:
  • bypass
  • inspect
  • block
Action based on client certificate request during an SSL protocol handshake.
ssl_other_client_certificate
string
    Choices:
  • bypass
  • inspect
  • block
Action based on received client certificate during an SSL protocol handshake.
supported_alpn
string
    Choices:
  • http1-1
  • http2
  • all
  • none
Configure ALPN option.
untrusted_caname
string
Untrusted CA certificate used by SSL Inspection. Source vpn.certificate.local.name.
use_ssl_server
string
    Choices:
  • disable
  • enable
Enable/disable the use of SSL server table for SSL offloading.
whitelist
string
    Choices:
  • enable
  • disable
Enable/disable exempting servers by FortiGuard whitelist.
state
string / required
    Choices:
  • present
  • absent
Indicates whether to create or remove the object.
vdom
string
Default:
"root"
Virtual domain, among those defined previously. A vdom is a virtual instance of the FortiGate that can be configured and used as a different unit.

Notes

Note

  • Legacy fortiosapi has been deprecated, httpapi is the preferred way to run playbooks

Examples

- hosts: fortigates
  collections:
    - fortinet.fortios
  connection: httpapi
  vars:
   vdom: "root"
   ansible_httpapi_use_ssl: yes
   ansible_httpapi_validate_certs: no
   ansible_httpapi_port: 443
  tasks:
  - name: Configure SSL/SSH protocol options.
    fortios_firewall_ssl_ssh_profile:
      vdom:  "{{ vdom }}"
      state: "present"
      access_token: "<your_own_value>"
      firewall_ssl_ssh_profile:
        allowlist: "enable"
        block_blacklisted_certificates: "disable"
        block_blocklisted_certificates: "disable"
        caname: "<your_own_value> (source vpn.certificate.local.name)"
        comment: "Optional comments."
        dot:
            cert_validation_failure: "allow"
            cert_validation_timeout: "allow"
            client_certificate: "bypass"
            expired_server_cert: "allow"
            proxy_after_tcp_handshake: "enable"
            revoked_server_cert: "allow"
            sni_server_cert_check: "enable"
            status: "disable"
            unsupported_ssl_cipher: "allow"
            unsupported_ssl_negotiation: "allow"
            untrusted_server_cert: "allow"
        ftps:
            allow_invalid_server_cert: "enable"
            cert_validation_failure: "allow"
            cert_validation_timeout: "allow"
            client_cert_request: "bypass"
            client_certificate: "bypass"
            expired_server_cert: "allow"
            invalid_server_cert: "allow"
            ports: "28"
            revoked_server_cert: "allow"
            sni_server_cert_check: "enable"
            status: "disable"
            unsupported_ssl: "bypass"
            unsupported_ssl_cipher: "allow"
            unsupported_ssl_negotiation: "allow"
            untrusted_cert: "allow"
            untrusted_server_cert: "allow"
        https:
            allow_invalid_server_cert: "enable"
            cert_probe_failure: "allow"
            cert_validation_failure: "allow"
            cert_validation_timeout: "allow"
            client_cert_request: "bypass"
            client_certificate: "bypass"
            expired_server_cert: "allow"
            invalid_server_cert: "allow"
            ports: "46"
            proxy_after_tcp_handshake: "enable"
            revoked_server_cert: "allow"
            sni_server_cert_check: "enable"
            status: "disable"
            unsupported_ssl: "bypass"
            unsupported_ssl_cipher: "allow"
            unsupported_ssl_negotiation: "allow"
            untrusted_cert: "allow"
            untrusted_server_cert: "allow"
        imaps:
            allow_invalid_server_cert: "enable"
            cert_validation_failure: "allow"
            cert_validation_timeout: "allow"
            client_cert_request: "bypass"
            client_certificate: "bypass"
            expired_server_cert: "allow"
            invalid_server_cert: "allow"
            ports: "64"
            proxy_after_tcp_handshake: "enable"
            revoked_server_cert: "allow"
            sni_server_cert_check: "enable"
            status: "disable"
            unsupported_ssl: "bypass"
            unsupported_ssl_cipher: "allow"
            unsupported_ssl_negotiation: "allow"
            untrusted_cert: "allow"
            untrusted_server_cert: "allow"
        mapi_over_https: "enable"
        name: "default_name_75"
        pop3s:
            allow_invalid_server_cert: "enable"
            cert_validation_failure: "allow"
            cert_validation_timeout: "allow"
            client_cert_request: "bypass"
            client_certificate: "bypass"
            expired_server_cert: "allow"
            invalid_server_cert: "allow"
            ports: "84"
            proxy_after_tcp_handshake: "enable"
            revoked_server_cert: "allow"
            sni_server_cert_check: "enable"
            status: "disable"
            unsupported_ssl: "bypass"
            unsupported_ssl_cipher: "allow"
            unsupported_ssl_negotiation: "allow"
            untrusted_cert: "allow"
            untrusted_server_cert: "allow"
        rpc_over_https: "enable"
        server_cert: "<your_own_value> (source vpn.certificate.local.name)"
        server_cert_mode: "re-sign"
        smtps:
            allow_invalid_server_cert: "enable"
            cert_validation_failure: "allow"
            cert_validation_timeout: "allow"
            client_cert_request: "bypass"
            client_certificate: "bypass"
            expired_server_cert: "allow"
            invalid_server_cert: "allow"
            ports: "105"
            proxy_after_tcp_handshake: "enable"
            revoked_server_cert: "allow"
            sni_server_cert_check: "enable"
            status: "disable"
            unsupported_ssl: "bypass"
            unsupported_ssl_cipher: "allow"
            unsupported_ssl_negotiation: "allow"
            untrusted_cert: "allow"
            untrusted_server_cert: "allow"
        ssh:
            inspect_all: "disable"
            ports: "117"
            proxy_after_tcp_handshake: "enable"
            ssh_algorithm: "compatible"
            ssh_policy_check: "disable"
            ssh_tun_policy_check: "disable"
            status: "disable"
            unsupported_version: "bypass"
        ssl:
            allow_invalid_server_cert: "enable"
            cert_validation_failure: "allow"
            cert_validation_timeout: "allow"
            client_cert_request: "bypass"
            client_certificate: "bypass"
            expired_server_cert: "allow"
            inspect_all: "disable"
            invalid_server_cert: "allow"
            revoked_server_cert: "allow"
            sni_server_cert_check: "enable"
            unsupported_ssl: "bypass"
            unsupported_ssl_cipher: "allow"
            unsupported_ssl_negotiation: "allow"
            untrusted_cert: "allow"
            untrusted_server_cert: "allow"
        ssl_anomalies_log: "disable"
        ssl_exempt:
         -
            address: "<your_own_value> (source firewall.address.name firewall.addrgrp.name)"
            address6: "<your_own_value> (source firewall.address6.name firewall.addrgrp6.name)"
            fortiguard_category: "144"
            id:  "145"
            regex: "<your_own_value>"
            type: "fortiguard-category"
            wildcard_fqdn: "<your_own_value> (source firewall.wildcard-fqdn.custom.name firewall.wildcard-fqdn.group.name)"
        ssl_exemptions_log: "disable"
        ssl_negotiation_log: "disable"
        ssl_server:
         -
            ftps_client_cert_request: "bypass"
            ftps_client_certificate: "bypass"
            https_client_cert_request: "bypass"
            https_client_certificate: "bypass"
            id:  "156"
            imaps_client_cert_request: "bypass"
            imaps_client_certificate: "bypass"
            ip: "<your_own_value>"
            pop3s_client_cert_request: "bypass"
            pop3s_client_certificate: "bypass"
            smtps_client_cert_request: "bypass"
            smtps_client_certificate: "bypass"
            ssl_other_client_cert_request: "bypass"
            ssl_other_client_certificate: "bypass"
        supported_alpn: "http1-1"
        untrusted_caname: "<your_own_value> (source vpn.certificate.local.name)"
        use_ssl_server: "disable"
        whitelist: "enable"

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key Returned Description
build
string
always
Build number of the fortigate image

Sample:
1547
http_method
string
always
Last method used to provision the content into FortiGate

Sample:
PUT
http_status
string
always
Last result given by FortiGate on last operation applied

Sample:
200
mkey
string
success
Master key (id) used in the last call to FortiGate

Sample:
id
name
string
always
Name of the table used to fulfill the request

Sample:
urlfilter
path
string
always
Path of the table used to fulfill the request

Sample:
webfilter
revision
string
always
Internal revision number

Sample:
17.0.2.10658
serial
string
always
Serial number of the unit

Sample:
FGVMEVYYQT3AB5352
status
string
always
Indication of the operation's result

Sample:
success
vdom
string
always
Virtual domain used

Sample:
root
version
string
always
Version of the FortiGate

Sample:
v5.6.3


Authors

  • Link Zheng (@chillancezen)
  • Jie Xue (@JieX19)
  • Hongbin Lu (@fgtdev-hblu)
  • Frank Shen (@frankshen01)
  • Miguel Angel Munoz (@mamunozgonzalez)
  • Nicolas Thomas (@thomnico)

© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/fortinet/fortios/fortios_firewall_ssl_ssh_profile_module.html