Why isn't there already a Get-WebCertificate or something, for fetching the TLS certificate being used by a web server?
Well, my old version doesn't work in PowerShell 7, so I had to put this together for someone this week:
https://gist.github.com/Jaykul/74508c0c8425e6d5d300caa84c8f873f
#PowerShell #SSL #TLS #Certificate #PS7 #ServerCertificateValidation
#powershell #ssl #tls #certificate #ps7 #servercertificatevalidation