Fill these in once
- Show the issuer and dates
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -issuer -datesnotAfter is the expiry date.
- Show the issuer and dates
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -issuer -datesnotAfter is the expiry date.
- Show the issuer and dates (OpenSSL comes with Git for Windows)
'' | & "C:\Program Files\Git\usr\bin\openssl.exe" s_client -connect example.com:443 -servername example.com 2>$null | Select-String 'NotAfter|s:|i:'NotAfter is the expiry date.

New to SSL certificate? I explain it in plain English on Layman Terms.