Hi,
like openssl s_client you can also use powershell to view/get the certificate of a webserver.
Try the following snipped
1 2 3 4 5 6 | PS D:\> [System.Net.HttpWebRequest]$oHTTPRequest=[System.Net.WebRequest]::Create($URL)PS D:\> [System.Net.HttpWebResponse]$oHttpWebResponse=$oHTTPRequest.GetResponse()PS D:\> $oHttpWebResponse.Close()PS D:\> [System.Security.Cryptography.X509Certificates.X509Certificate2]$oCert=$oHTTPRequest.ServicePoint.CertificatePS D:\> $oCert | fl * |
Michael