community.general/lib/ansible/modules/crypto
Andrea Tartaglia 36a790dcde New cryptography backend for openssl_certificate (#53924)
* New cryptography backend for openssl_certificate

load_* functions in module_utils/crypto.py now have a backend paramter
which when set to 'cryptography' will return cryptography objects so
they can be used for both pyopenssl and cryptography backends.
Added a select_message_digest function too returning a cryptography
digest hash from `cryptography.hazmat.primitives.hashes`
Added new classes for Cryptography backend

* Run test with various backends.

* Prefixing tests.

* Make sure we have the correct backend available.

* Linting (flake8).

* Moved cryptography import to separate try/except

* Make sure certificate is actually valid at some time in the past.

* Improve error handling.

* Trying to fix validation for cryptography backend.

* Fixed issue with keyUsage test in assertonly

* Fixed CI/Lint issues

* Fix private key problem for OwnCA.

* Cryptography backend doesn't support v2 certs.

* issue an expired cert with command when using cryptography backend

* Added warning when backend is auto and v2 cert is requested

* Bumped min cryptography version to  1.6

* Correctly check for failure when backend is cryptography and cert is v2

* Use self.backend where possible

* Use secp521r1 EC when testing on CentOS6

* Fixed pylint issue

* AcmeCertificate support for both backends

* Review fixes

* Fixed missing '(' when raising error

* Fixed date_fmt loop

* Updated docs and requirements with cryptography

* Add openssl_certificate to changelog.
2019-03-22 13:21:23 +00:00
..
acme ACME: rename acme_account_facts -> acme_account_info (#54082) 2019-03-20 13:21:28 +00:00
__init__.py Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00
certificate_complete_chain.py crypto modules: add missing option types (#52421) 2019-02-18 10:24:17 +00:00
get_certificate.py crypto modules: add missing option types (#52421) 2019-02-18 10:24:17 +00:00
luks_device.py luks_device: add allow_to_remove_last_key option (#52371) 2019-03-14 09:55:35 +00:00
openssh_cert.py crypto modules: add missing option types (#52421) 2019-02-18 10:24:17 +00:00
openssh_keypair.py Add public key return to openssh_keypair (#53214) 2019-03-05 16:07:43 +00:00
openssl_certificate.py New cryptography backend for openssl_certificate (#53924) 2019-03-22 13:21:23 +00:00
openssl_csr.py openssl_privatekey: add backup option (#53593) 2019-03-18 16:34:47 +00:00
openssl_dhparam.py crypto modules: add missing option types (#52421) 2019-02-18 10:24:17 +00:00
openssl_pkcs12.py openssl_privatekey: add backup option (#53593) 2019-03-18 16:34:47 +00:00
openssl_privatekey.py openssl_privatekey: add backup option (#53593) 2019-03-18 16:34:47 +00:00
openssl_publickey.py openssl_publickey: fix handling of OpenSSH private keys with passphrase (#54192) 2019-03-22 16:15:55 +05:30