How can I call a URL and check if its certificate is valid? I’m trying to keep track certificates for my department’s websites, half of which are hosted on Linux machines to which I have no access. The information I’m trying to gather into an eventual report is:
URL, SubjectName, IssuerName, and dates valid (NotAfter, NotBefore)
I don’t understand how to get there from Invoke-WebRequest or Invoke-RESTMethod. I’m not asking for a full script, just a jumping off point.
Thanks,
Patrick