Skip to content

Commit

Permalink
use more specific var name
Browse files Browse the repository at this point in the history
  • Loading branch information
dnmvisser committed Aug 2, 2023
1 parent 82ec93c commit 060f33b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/verify_pair.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
- name: Fetch certificate info
community.crypto.x509_certificate_info:
content: "{{ tls_cert_crt }}"
register: _crt
register: _tls_crt

- name: Fetch private key info
community.crypto.openssl_privatekey_info:
content: "{{ tls_cert_key }}"
register: _key
register: _tls_key

- name: Safety check
assert:
that: _crt.public_key == _key.public_key
that: _tls_crt.public_key == _tls_key.public_key
fail_msg: "Private key and certificate do NOT belong together, there is no use in continuing as it will break your applications"

0 comments on commit 060f33b

Please sign in to comment.