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 8, 2020
1 parent 769284e commit 480ea30
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 480ea30

Please sign in to comment.