Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

pfsense_ca

Frederic Bor edited this page Jul 1, 2020 · 2 revisions
> PFSENSE_CA    (/home/fbor/ansible/lib/ansible/modules/network/pfsense/pfsense_ca.py)

  Manage pfSense Certificate Authorities

  * This module is maintained by The Ansible Community
OPTIONS (= is mandatory):

- certificate
  The certificate for the Certificate Authority.  This can be in PEM form or Base64 encoded PEM as a single string (which is how pfSense stores it).
  [Default: (null)]
  type: str

- crl
  The Certificate Revocation List for the Certificate Authority.  This can be in PEM form or Base64 encoded PEM as a single string (which is how pfSense stores it).
  [Default: (null)]
  type: str

= name
  The name of the Certificate Authority

  type: str

- state
  State in which to leave the Certificate Authority
  (Choices: present, absent)[Default: present]
  type: str


AUTHOR: Orion Poplawski (@opoplawski)
  METADATA:
    status:
    - preview
    supported_by: community
  

EXAMPLES:

- name: Add AD Certificate Authority
  pfsense_ca:
    name: AD CA
    certificate: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tDQpNSUlGcXpDQ0E1T2dB...
    crl: |
      -----BEGIN X509 CRL-----
      MIICazCCAVMCAQEwDQYJKoZIhvcNAQELBQAwGjEYMBYGA1UEAxMPTldSQSBPcGVu
      ...
      r0hUUy3w1trKtymlyhmd5XmYzINYp8p/Ws+boST+Fcw3chWTep/J8nKMeKESO0w=
      -----END X509 CRL-----
    state: present

- name: Remove AD Certificate Authority
  pfsense_ca:
    name: AD CA
    state: absent


RETURN VALUES: