The same check in a terminal
The certificate and chain:
openssl s_client -connect example.com:443 -servername example.com -showcerts </dev/null
Expiry date only:
openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null | openssl x509 -noout -enddate
Names covered:
openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null | openssl x509 -noout -ext subjectAltName
Mail server with STARTTLS:
openssl s_client -connect mail.example.com:587 -starttls smtp </dev/null
From the command line
Every check also answers in plain text to curl, and in JSON with ?format=json. All endpoints.
curl https://tools-api.wardterm.com/ssl/example.com
curl https://tools-api.wardterm.com/ssl/example.com:8443
Reading the result
Incomplete chain
The server sends its certificate without the intermediate. Browsers often recover, while curl, apps and APIs fail. Serve the full chain file, such as fullchain.pem.
Name mismatch
The host you asked for is not in the names of the certificate. Add it and issue the certificate again.
Questions
How do I check when an SSL certificate expires?
Enter the host and press Check. The first lines give the expiry date and the days left.
What does "unable to get local issuer certificate" mean?
The client cannot build the chain to a trusted root, usually because the server does not send the intermediate certificate.
Can I check a port other than 443?
Yes. Set the port, for example 8443 or 993. Protocols that start with STARTTLS, such as SMTP on 587, need the openssl command above.
Is TLS 1.0 tested?
The check reports TLS 1.2 and 1.3, the versions current clients use.