Looking for help to convert XML output of a ssl certificate and get date 
out of it. 
Then compare and check if that cert has expired or not.

output

    "stdout": "{\"not-valid-after\": \"Apr 20 17:36:03 2022 GMT\"}",
    "stdout_lines": [
        "{\"not-valid-after\": \"Apr 20 17:36:03 2022 GMT\"}"
    ],
    "stdout_xml": "<not-valid-after>Apr 20 17:36:03 2022 
GMT</not-valid-after>\n"

I am looking to change the red highlighted line in datetime format. 

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/26e20e6e-5c9b-45f6-96e4-f523f5fa8534n%40googlegroups.com.

Reply via email to