Security and certificates

Check a website's certificate and when it expires

See who issued a site's HTTPS certificate and its expiry date, from the terminal.

Fill these in once
  1. Show the issuer and dates
    Terminal
    echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -issuer -dates

    notAfter is the expiry date.

  1. Show the issuer and dates
    Terminal · Ubuntu / Debian
    echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -issuer -dates

    notAfter is the expiry date.

  1. Show the issuer and dates (OpenSSL comes with Git for Windows)
    PowerShell
    '' | & "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.