mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
test: openssl 1.1.x compatibility (#47112)
This commit is contained in:
@@ -8,6 +8,9 @@
|
||||
privatekey_path: '{{ output_dir }}/ca_privatekey.pem'
|
||||
subject:
|
||||
commonName: Example CA
|
||||
basic_constraints:
|
||||
- 'CA:TRUE'
|
||||
basic_constraints_critical: yes
|
||||
|
||||
- name: Generate selfsigned CA certificate
|
||||
openssl_certificate:
|
||||
|
||||
@@ -20,7 +20,8 @@
|
||||
- ownca_verify_ca.stdout == 'OK'
|
||||
- ownca_cert_modulus.stdout == privatekey_modulus.stdout
|
||||
- ownca_cert_version.stdout == '3'
|
||||
- ownca_cert_issuer.stdout == 'CN=Example CA'
|
||||
# openssl 1.1.x adds a space between the output
|
||||
- ownca_cert_issuer.stdout in ['CN=Example CA', 'CN = Example CA']
|
||||
|
||||
- name: Validate ownca certificate idempotence
|
||||
assert:
|
||||
|
||||
Reference in New Issue
Block a user