Verifying Website Certificates

Welcome Forums General PowerShell Q&A Verifying Website Certificates

Viewing 1 reply thread
  • Author
    Posts
    • #273816
      Participant
      Topics: 6
      Replies: 5
      Points: 36
      Rank: Member

      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

    • #274029
      Participant
      Topics: 4
      Replies: 422
      Points: 734
      Helping Hand
      Rank: Major Contributor

      Are these public facing websites or internal only?

      If they’re public facing, I think the best route will be to use the SSL Labs API

Viewing 1 reply thread
  • You must be logged in to reply to this topic.