mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-04-27 00:46:43 +00:00
* OpenSSL 4 text output leaves leading 00: away. * Split up key parsing function. * Add tests. (cherry picked from commit1a96fe0bbc) (cherry picked from commitfa36f75812)
This commit is contained in:
@@ -164,7 +164,7 @@ class OpenSSLCLIBackend(CryptoBackend):
|
||||
|
||||
if account_key_type == "rsa":
|
||||
pub_hex = re.search(
|
||||
r"modulus:\n\s+00:([a-f0-9\:\s]+?)\npublicExponent",
|
||||
r"modulus:\n\s+(?:00:)?([a-f0-9\:\s]+?)\npublicExponent",
|
||||
out_text,
|
||||
re.MULTILINE | re.DOTALL,
|
||||
).group(1)
|
||||
|
||||
Reference in New Issue
Block a user