[stable-1] cryptography support: improve Python 2 Unicode handling (#314)

* Improve Python 2 Unicode handling. (#313)

(cherry picked from commit eb8dabce84)

* Remove test since it doesn't work with pyOpenSSL.

* Completely remove test.

* Update plugins/module_utils/crypto/cryptography_support.py
This commit is contained in:
Felix Fontein
2021-10-29 21:10:57 +02:00
committed by GitHub
parent 0755a2b657
commit b893252ad1
3 changed files with 23 additions and 14 deletions

View File

@@ -19,6 +19,13 @@
- "['organizationalUnitName', 'ACME Department'] in result.subject_ordered"
- result.public_key_type == 'RSA'
- result.public_key_data.size == (default_rsa_key_size_certifiates | int)
- "result.subject_alt_name == [
'DNS:www.ansible.com',
'IP:1.2.3.4',
'IP:::1',
'email:test@example.org',
'URI:https://example.org/test/index.html'
]"
- name: Check SubjectKeyIdentifier and AuthorityKeyIdentifier
assert: