Debian Codegraph @

ansible_collections/community/crypto/tests/ee/roles/x509_certificate/tasks/main.yml

raw
1 ---
2 # Copyright (c) Ansible Project
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 - name: Create private key
7 community.crypto.openssl_privatekey:
8 path: "{{ output_path }}/cert.key"
9 type: ECC
10 curve: secp256r1
11
12 - name: Create CSR
13 community.crypto.openssl_csr:
14 path: "{{ output_path }}/cert.csr"
15 privatekey_path: "{{ output_path }}/cert.key"
16
17 - name: Create certificate
18 community.crypto.x509_certificate:
19 path: "{{ output_path }}/cert.pem"
20 csr_path: "{{ output_path }}/cert.csr"
21 privatekey_path: "{{ output_path }}/cert.key"
22 provider: selfsigned