mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-04-26 08:26:31 +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:
2
changelogs/fragments/1005-openssl-4.yml
Normal file
2
changelogs/fragments/1005-openssl-4.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- "acme_* modules - adjust OpenSSL RSA private key output parsing to OpenSSL 4.0.0 (https://github.com/ansible-collections/community.crypto/pull/1005)."
|
||||
@@ -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