Skip to content

Commit

Permalink
add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
cmarodrigues committed Jul 12, 2021
1 parent a567fa6 commit 012c60e
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions library/pfsense_cert.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,36 @@
"""

EXAMPLES = """
- name: New certificate
- name: Generate new internal certificate
pfsense_cert:
name: newcert
ca: internal-ca
method: "internal"
name: "test"
ca: "internal-ca"
keytype: "RSA"
keylen: 2048
lifetime: 3650
dn_country: "PT"
dn_organization: "Dummy"
certtype: "user"
state: present
- name: Import certificate
pfsense_cert:
method: "import"
name: "test"
certificate: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUUxVENDQXIyZ0F3...
key: |
-----BEGIN PRIVATE KEY-----
MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQC4yY0SI8lWNN2B
...
i0LiJ+QOek6Qy+51kMK3rXNsQQ==
-----END PRIVATE KEY-----
certtype: "user"
state: present
- name: Remove certificate
pfsense_cert:
name: newcert
name: "test"
state: absent
"""

Expand Down

0 comments on commit 012c60e

Please sign in to comment.