From 6bec0b402ce1757086ebc30ff4a1ac76bbc69203 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sun, 27 Nov 2022 18:13:59 +0100 Subject: [PATCH] Be more precise about which private keys are supported in openssl_publickey. (#532) (cherry picked from commit 1097371cf47543fa87966d3541b731644557f131) --- plugins/modules/openssl_publickey.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/modules/openssl_publickey.py b/plugins/modules/openssl_publickey.py index 60f71c77..0b6e155f 100644 --- a/plugins/modules/openssl_publickey.py +++ b/plugins/modules/openssl_publickey.py @@ -13,8 +13,9 @@ DOCUMENTATION = r''' module: openssl_publickey short_description: Generate an OpenSSL public key from its private key. description: - - This module allows one to (re)generate OpenSSL public keys from their private keys. - - Keys are generated in PEM or OpenSSH format. + - This module allows one to (re)generate public keys from their private keys. + - Public keys are generated in PEM or OpenSSH format. Private keys must be OpenSSL PEM keys. + OpenSSH private keys are not supported, use the M(community.crypto.openssh_keypair) module to manage these. - "The module can use the cryptography Python library, or the pyOpenSSL Python library. By default, it tries to detect which one is available. This can be overridden with the I(select_crypto_backend) option. When I(format) is C(OpenSSH),