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'
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue