test: openssl 1.1.x compatibility (#47112)

This commit is contained in:
Jordan Borean 2018-10-17 05:38:52 +10:00 committed by GitHub
parent 02f4d0a57f
commit 9ba33f6ac1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -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:

View file

@ -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: