Created
May 29, 2020 10:37
-
-
Save kevit/c21bb21e8415d95a95e9ff193604fde3 to your computer and use it in GitHub Desktop.
ansible ssl check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
connection: local | |
tasks: | |
- name: Get a cert from an https port | |
get_certificate: | |
host: "www.google.com" | |
port: 443 | |
register: cert | |
- copy: | |
content: "{{ cert.cert }}" | |
dest: "cert.file" | |
- name: Ensure that the existing certificate has a certain domain in its subjectAltName | |
openssl_certificate: | |
path: "cert.file" | |
provider: assertonly | |
subject_alt_name: | |
- www.example.com | |
- test.example.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
currently have an issue with SNI