Introduction
community.crypto is the Ansible collection that provides modules for managing X.509 certificates, OpenSSL keys and certificates, OpenSSH keys, ACME certificate issuance, and related cryptographic material on managed nodes. Version 3.5.0 has just been published on Galaxy, replacing 3.4.0.
This is a feature release. It adds support for a new post-quantum SSH key type in openssh_keypair, and it changes how several modules mark returned private key material when running on newer versions of ansible-core. It also includes one bugfix related to a deprecated function used internally.
Whats New
mldsa44 SSH key type support
openssh_keypair now supports generating mldsa44 keys via ssh-keygen. This key type is only available when backend=opensshbin, or when backend=auto is used and a compatible ssh-keygen binary is installed on the system (PR #1081).
Private key output marked as sensitive on ansible-core 2.22+
On ansible-core 2.22 and later, several modules and the related filter plugin now mark the private key content they return as sensitive, so it is masked in logs and output rather than printed in plain text (PR #1076). This affects:
openssl_pkcs12_info— whenreturn_private_key=trueopenssl_privatekey— whenreturn_content=trueopenssl_privatekey_info— whenreturn_private_key_data=trueopenssl_privatekey_infofilter plugin — whenreturn_private_key_data=trueopenssl_privatekey_pipe— whenreturn_content=true
On ansible-core versions older than 2.22, behavior is unchanged.
Bugfixes
openssl_privatekey_pipe— avoids calling a deprecated function when running onansible-core2.22+ (PR #1082).
Component Overview
| Component | Change | Reference |
|---|---|---|
openssh_keypair | Adds mldsa44 key type support | PR #1081 |
openssl_pkcs12_info | Private key marked sensitive on core 2.22+ | PR #1076 |
openssl_privatekey | Private key content marked sensitive on core 2.22+ | PR #1076 |
openssl_privatekey_info | Private key data marked sensitive on core 2.22+ | PR #1076 |
openssl_privatekey_info filter plugin | Private key data marked sensitive on core 2.22+ | PR #1076 |
openssl_privatekey_pipe | Private key content marked sensitive; deprecated function removed | PR #1076, PR #1082 |
How to Install and Test
# Install or upgrade to the latest version
ansible-galaxy collection install community.crypto --upgrade
# Verify the installed version
ansible-galaxy collection list community.crypto
# Check the documentation for a specific module
ansible-doc community.crypto.openssh_keypair
# Quick smoke test: generate an mldsa44 SSH keypair
# (requires backend=opensshbin or backend=auto with a compatible ssh-keygen)
ansible localhost -m community.crypto.openssh_keypair -a \
"path=/tmp/id_mldsa44 type=mldsa44 backend=opensshbin"
# Verify private key data is marked sensitive (ansible-core 2.22+)
ansible-playbook -vvv test_privatekey_info.yml
Conclusion
community.crypto 3.5.0 is a straightforward upgrade: it introduces mldsa44 support for OpenSSH keypairs and tightens handling of sensitive private key output on ansible-core 2.22+, with no breaking changes reported for earlier core versions. Users running playbooks that capture private key content via return_content or return_private_key_data should re-check their output handling once they move to ansible-core 2.22 or later, since that data will now be masked by default.