test: openssl 1.1.x compatibility (#47112)

(cherry picked from commit 9ba33f6ac1)
pull/47169/head
Jordan Borean 6 years ago committed by Matt Clay
parent 02bd829dd2
commit c085cae991

@ -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…
Cancel
Save