mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-08 06:13:03 +00:00
The first case about ca_csr has been copy/pasted.
But in the following cases, the CSR must be the certificate csr.
(cherry picked from commit 32dab841d7)
Co-authored-by: Bruno Vernay <brunovern.a@gmail.com>
This commit is contained in:
@@ -71,7 +71,7 @@ In the following example, we assume that the certificate to sign (including its
|
|||||||
|
|
||||||
- name: Sign certificate with our CA
|
- name: Sign certificate with our CA
|
||||||
community.crypto.x509_certificate_pipe:
|
community.crypto.x509_certificate_pipe:
|
||||||
csr_content: "{{ ca_csr.csr }}"
|
csr_content: "{{ csr.csr }}"
|
||||||
provider: ownca
|
provider: ownca
|
||||||
ownca_path: /path/to/ca-certificate.pem
|
ownca_path: /path/to/ca-certificate.pem
|
||||||
ownca_privatekey_path: /path/to/ca-certificate.key
|
ownca_privatekey_path: /path/to/ca-certificate.key
|
||||||
@@ -128,7 +128,7 @@ Please note that the above procedure is **not idempotent**. The following extend
|
|||||||
- name: Sign certificate with our CA
|
- name: Sign certificate with our CA
|
||||||
community.crypto.x509_certificate_pipe:
|
community.crypto.x509_certificate_pipe:
|
||||||
content: "{{ (certificate.content | b64decode) if certificate_exists.stat.exists else omit }}"
|
content: "{{ (certificate.content | b64decode) if certificate_exists.stat.exists else omit }}"
|
||||||
csr_content: "{{ ca_csr.csr }}"
|
csr_content: "{{ csr.csr }}"
|
||||||
provider: ownca
|
provider: ownca
|
||||||
ownca_path: /path/to/ca-certificate.pem
|
ownca_path: /path/to/ca-certificate.pem
|
||||||
ownca_privatekey_path: /path/to/ca-certificate.key
|
ownca_privatekey_path: /path/to/ca-certificate.key
|
||||||
|
|||||||
Reference in New Issue
Block a user