Debian Codegraph @

ansible_collections/community/crypto/plugins/doc_fragments/_module_privatekey_convert.py

raw
1 # Copyright (c) 2022, Felix Fontein <[email protected]>
2 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
3 # SPDX-License-Identifier: GPL-3.0-or-later
4
5 # Note that this doc fragment is **PRIVATE** to the collection. It can have breaking changes at any time.
6 # Do not use this from other collections or standalone plugins/modules!
7
8 from __future__ import annotations
9
10
11 class ModuleDocFragment:
12 # Standard files documentation fragment
13 DOCUMENTATION = r"""
14 requirements:
15 - cryptography >= 3.3
16 attributes:
17 diff_mode:
18 support: none
19 idempotent:
20 support: full
21 options:
22 src_path:
23 description:
24 - Name of the file containing the OpenSSL private key to convert.
25 - Exactly one of O(src_path) or O(src_content) must be specified.
26 type: path
27 src_content:
28 description:
29 - The content of the file containing the OpenSSL private key to convert.
30 - Exactly one of O(src_path) or O(src_content) must be specified.
31 type: str
32 src_passphrase:
33 description:
34 - The passphrase for the private key to load.
35 type: str
36 dest_passphrase:
37 description:
38 - The passphrase for the private key to store.
39 type: str
40 format:
41 description:
42 - Determines which format the destination private key should be written in.
43 - Please note that not every key can be exported in any format, and that not every format supports encryption.
44 type: str
45 choices: [pkcs1, pkcs8, raw]
46 required: true
47 seealso:
48 - module: community.crypto.openssl_privatekey
49 - module: community.crypto.openssl_privatekey_pipe
50 - module: community.crypto.openssl_publickey
51 """