Since this is also tagged `openssl` you can use it to download the certificate list with `openssl s_client -connect google.com:443 -showcerts`. Leaving it up to you to integrate this into PowerShell.
– doneal24Dec 03 '22 at 18:30
1
Can't comment yet, but seems answered here: https://stackoverflow.com/questions/22233702/how-to-download-the-ssl-certificate-from-a-website-using-powershell
– GetShiftingDec 08 '22 at 13:11