You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Module x509_crl fails to create a certificate revocation list if the key algorithm is ed25519 or ed448.
(Not sure if it's an issue with the x509_crl module itself or an upstream issue with cryptography.)
ValueError: Algorithm must be None when signing via ed25519 or ed448
fatal: [localhost]: FAILED! => changed=false
module_stderr: |-
Traceback (most recent call last):
File "/home/frederic/.ansible/tmp/ansible-tmp-1655121256.3966506-50959-200302723393491/AnsiballZ_x509_crl.py", line 107, in <module>
_ansiballz_main()
File "/home/frederic/.ansible/tmp/ansible-tmp-1655121256.3966506-50959-200302723393491/AnsiballZ_x509_crl.py", line 99, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/home/frederic/.ansible/tmp/ansible-tmp-1655121256.3966506-50959-200302723393491/AnsiballZ_x509_crl.py", line 47, in invoke_module
runpy.run_module(mod_name='ansible_collections.community.crypto.plugins.modules.x509_crl', init_globals=dict(_module_fqn='ansible_collections.community.crypto.plugins.modules.x509_crl', _modlib_path=modlib_path),
File "/usr/lib/python3.8/runpy.py", line 207, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "/usr/lib/python3.8/runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/tmp/ansible_x509_crl_payload_elucupsh/ansible_x509_crl_payload.zip/ansible_collections/community/crypto/plugins/modules/x509_crl.py", line 898, in <module>
File "/tmp/ansible_x509_crl_payload_elucupsh/ansible_x509_crl_payload.zip/ansible_collections/community/crypto/plugins/modules/x509_crl.py", line 882, in main
File "/tmp/ansible_x509_crl_payload_elucupsh/ansible_x509_crl_payload.zip/ansible_collections/community/crypto/plugins/modules/x509_crl.py", line 731, in generate
File "/tmp/ansible_x509_crl_payload_elucupsh/ansible_x509_crl_payload.zip/ansible_collections/community/crypto/plugins/modules/x509_crl.py", line 722, in _generate_crl
File "/home/frederic/.local/lib/python3.8/site-packages/cryptography/x509/base.py", line 1013, in sign
return rust_x509.create_x509_crl(self, private_key, algorithm)
ValueError: Algorithm must be None when signing via ed25519 or ed448
module_stdout: ''
msg: |-
MODULE FAILURE
See stdout/stderr for the exact error
rc: 1
The text was updated successfully, but these errors were encountered:
Thanks for reporting this! This is a bug in the collection, and something very easy to fix (since the code for checking that condition already exists for the x509_certificate module...). I'll have a PR ready soon.
SUMMARY
Module
x509_crl
fails to create a certificate revocation list if the key algorithm ised25519
ored448
.(Not sure if it's an issue with the
x509_crl
module itself or an upstream issue withcryptography
.)ISSUE TYPE
COMPONENT NAME
x509_crl
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
cryptography==37.0.2
STEPS TO REPRODUCE
EXPECTED RESULTS
Expecting the file
root-ca.crl
to be created.ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: