Skip to content

Commit

Permalink
Adjust to work with macOS 10.15.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Nov 3, 2020
1 parent f7b368e commit 369e92d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dependencies:
- setup_openssl
- setup_pyopenssl
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,17 @@
register: generate_certificate_changed_check

- name: "({{ select_crypto_backend }}) Validate certificate (test - privatekey modulus)"
shell: 'openssl rsa -noout -modulus -in {{ output_dir }}/privatekey.pem'
shell: '{{ openssl_binary }} rsa -noout -modulus -in {{ output_dir }}/privatekey.pem'
register: privatekey_modulus

- name: "({{ select_crypto_backend }}) Validate certificate (test - Common Name)"
shell: "openssl x509 -noout -subject -in /dev/stdin -nameopt oneline,-space_eq"
shell: "{{ openssl_binary }} x509 -noout -subject -in /dev/stdin -nameopt oneline,-space_eq"
args:
stdin: "{{ generate_certificate.certificate }}"
register: certificate_cn

- name: "({{ select_crypto_backend }}) Validate certificate (test - certificate modulus)"
shell: 'openssl x509 -noout -modulus -in /dev/stdin'
shell: '{{ openssl_binary }} x509 -noout -modulus -in /dev/stdin'
args:
stdin: "{{ generate_certificate.certificate }}"
register: certificate_modulus
Expand Down

0 comments on commit 369e92d

Please sign in to comment.