mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-17 02:15:27 -07:00
test: openssl 1.1.x compatibility (#47112)
This commit is contained in:
parent
02f4d0a57f
commit
9ba33f6ac1
2 changed files with 5 additions and 1 deletions
|
@ -8,6 +8,9 @@
|
||||||
privatekey_path: '{{ output_dir }}/ca_privatekey.pem'
|
privatekey_path: '{{ output_dir }}/ca_privatekey.pem'
|
||||||
subject:
|
subject:
|
||||||
commonName: Example CA
|
commonName: Example CA
|
||||||
|
basic_constraints:
|
||||||
|
- 'CA:TRUE'
|
||||||
|
basic_constraints_critical: yes
|
||||||
|
|
||||||
- name: Generate selfsigned CA certificate
|
- name: Generate selfsigned CA certificate
|
||||||
openssl_certificate:
|
openssl_certificate:
|
||||||
|
|
|
@ -20,7 +20,8 @@
|
||||||
- ownca_verify_ca.stdout == 'OK'
|
- ownca_verify_ca.stdout == 'OK'
|
||||||
- ownca_cert_modulus.stdout == privatekey_modulus.stdout
|
- ownca_cert_modulus.stdout == privatekey_modulus.stdout
|
||||||
- ownca_cert_version.stdout == '3'
|
- 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
|
- name: Validate ownca certificate idempotence
|
||||||
assert:
|
assert:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue