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”: “Apr 20 17:36:03 2022 GMT\n”
I am looking to change the red highlighted line in datetime format.