You can use this as a starting point for checking the explicit dates, or range of cert expiration dates, in a script:

$certHash = "D3A6E7B1746DFA37D4B93263AAA1348A2BA41720"  
Get-ChildItem -Path cert:\LocalMachine\My -Recurse |   
    Where-Object {$_.Thumbprint -eq $cert} |  
        Select-Object NotAfter  
Answer from Rich Matheisen on learn.microsoft.com
🌐
eUKhost
eukhost.com › home › how to check ssl expiry date via the command line
Check SSL Certificate Expiry via Command Line
July 19, 2025 - Open Command Prompt (search for cmd in the Start menu). ... Replace certificate.cer with your actual file name. Look for the line labelled “Not After”; this shows the certificate’s expiration date.
🌐
Askssl
askssl.com › check-ssl-certificate-expiration-date-in-windows-command-line
How to Check SSL Certificate Expiration Date in Windows Command Line – Free SSL Certificates
Open Command Prompt: Type ‘cmd’ into the Windows search bar and open the Command Prompt. Run the command: Bashcertutil -verify -urlfetch certificate.cer Replace certificate.cer with the name of your certificate file. Locate “Not After”: The output contains a line indicating the expiration ...
People also ask

How do I check when my SSL certificate expires?
Users can check SSL certificate expiration using the OpenSSL command: openssl x509 -enddate -noout -in certificate.pem. This command displays the exact expiration date of the SSL certificate. The system shows the date in UTC format.
🌐
sslinsights.com
sslinsights.com › home › wiki › how to check ssl certificate expiration date using openssl
How to Check SSL Certificate Expiration Date Using OpenSSL
How do I check SSL certificate details?
The OpenSSL command 'openssl x509 -text -noout -in certificate.pem' shows complete SSL certificate information. This includes the expiration date, issuer details, and certificate validity period. Users receive detailed certificate data in text format.
🌐
sslinsights.com
sslinsights.com › home › wiki › how to check ssl certificate expiration date using openssl
How to Check SSL Certificate Expiration Date Using OpenSSL
How do I check if my SSL certificate is valid?
Users can verify SSL certificate validity through the command: openssl verify certificate.pem. The browser address bar shows a padlock icon for valid certificates. Certificate transparency logs also confirm certificate validity.
🌐
sslinsights.com
sslinsights.com › home › wiki › how to check ssl certificate expiration date using openssl
How to Check SSL Certificate Expiration Date Using OpenSSL
🌐
TunesBro
tunesbro.com › home › how to check ssl certificate expiration date on windows server
How to Check Ssl Certificate EXPiration Date on Windows Server
June 30, 2023 - 2. Click on Windows PowerShell (Admin) from the context menu. 3. Now, type the following command in the PowerShell window and press Enter: Get-ChildItem -Recurse Cert:\Localmachine\My\ * | Select-Object FriendlyName, Subject, ThumbPrint, NotAfter | Sort-Object NotAfter ...
🌐
SSL Dragon
ssldragon.com › home › tutorials › openssl tutorials › how to check the ssl certificate expiration date with openssl
How to Check the SSL Certificate Expiration Date with OpenSSL?
February 13, 2025 - Run the OpenSSL command to check the certificate expiry date: echo | openssl s_client -servername yourdomain.com -connect yourdomain.com:443 2>nul | openssl x509 -noout -enddate · Replace yourdomain.com with your actual domain name.
🌐
SSLInsights
sslinsights.com › home › wiki › how to check ssl certificate expiration date using openssl
How to Check SSL Certificate Expiration Date Using OpenSSL
May 13, 2025 - Administrators use OpenSSL to view when SSL certificates will expire by entering specific commands in the terminal. The basic command “openssl s_client -connect domain.com:443 | openssl x509 -noout -dates” shows certificate validity periods.
Address   1207 Delaware Ave #2838, 19806, Wilmington
(5.0)
🌐
HCL Software
support.hcl-software.com › csm
How to check expiry date of the certificate used for SSL in VersionVault WAN server using CLI - Customer Support
This article shows the method to check the expiry date of the certificate used for SSL in the HCL VersionVault
Find elsewhere
🌐
Hexnode
hexnode.com › home › script to check certificate expiry on windows devices
Script to check certificate expiry on Windows devices - Hexnode Help Center
March 2, 2023 - E.g., To obtain the expiry date of a certificate with the thumbprint “8F43288AD272F3103B6FB1428485EA3014C0BCFE” from the local machine’s “Trusted Root Certification Authorities” folder, use the command:
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 1602058 › how-to-get-date-of-ssl-certificate-with-power-shel
How to Get date of ssl certificate with power shell - Microsoft Q&A
I have a list of servers running IIS with a SSL certificate. it is about to expire. Is there a script or a command I can run and get the SSL certificate date of expiration in all servers and send it to a file? Windows for business | Windows Server | User experience | PowerShell
🌐
Better Stack
betterstack.com › community › questions › how-to-determine-ssl-cert-expiration-date-from-pem-encoded-cert
How to Determine Ssl Cert Expiration Date From a Pem Encoded Certificate? | Better Stack Community
By using the openssl x509 -in your_certificate.pem -noout -dates command, you can easily find the expiration date of your SSL certificate from a PEM-encoded certificate file.
🌐
realguess
realguess.net › 2016 › 10 › 11 › a-cli-method-to-check-ssl-certificate-expiration-date
A CLI Method to Check SSL Certificate Expiration Date | realguess
When used interactively (which ... if the line begins with a Q or if end of file is reached, the connection will be closed down.[^2] To quit, type Q or <ctr>+d (EOF). ... Now we have retrieved the SSL certificate from the server. Next, extract the expiration date. This is done by using the standard command ...
🌐
Akamai TechDocs
techdocs.akamai.com › eaa › docs › certificate-rotation-of-expired-certificates
Certificate rotation of expired certificates
You can check the expiration of ... a UNIX command line window. Enter a query openssl s_client -servername <NAME> -connect <HOST:PORT> 2>/dev/null | openssl x509 -noout -dates....
🌐
Let's Encrypt
community.letsencrypt.org › help
How to find Certifications Expiry Date - Help - Let's Encrypt Community Support
December 19, 2017 - Good Morning! I have the following doubt: Which command should I run to check the expiration date of my certificates on my server? Operating System: Ubuntu Thank you!
🌐
Vpsdoctor
vpsdoctor.com › blog › check-ssl-certificate-expiration-from-command-line
Check SSL Certificate expiration from command line
This quick tip shows how you can get the expiration date of a certificate from the command line.
🌐
Nick Janetakis
nickjanetakis.com › blog › using-curl-to-check-an-ssl-certificate-expiration-date-and-details
Using curl to Check an SSL Certificate's Expiration Date and Details — Nick Janetakis
February 15, 2022 - You can test that on: curl https://expired.badssl.com/ -vkI · The video below goes into more detail around this and provides tips on how to parse out the date along with when you might want to do such a thing. ... $ curl https://example.com -vI * Trying 93.184.216.34:443... * TCP_NODELAY set * Connected to example.com (93.184.216.34) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /etc/ssl/certs/ca-certificates.crt CApath: /etc/ssl/certs * TLSv1.3 (OUT), TLS handshake, Client hello (1): * TLSv1.3 (IN), TLS handshake, Serve
🌐
Broadcom
knowledge.broadcom.com › external › article › 344201 › verify-and-resolve-expired-vcenter-serve.html
Verify and resolve expired vCenter Server certificates using the command line interface
November 24, 2025 - This article provides steps on how to verify certificate expiration dates and resolve expired certificates in the vCenter Server using the command line interface.
🌐
CENTREL Solutions
centrel-solutions.com › xiaconfiguration › capabilities.aspx
How to check SSL certificate expiration date in Windows
XIA Configuration Server
IT network documentation software that saves time and reduces costs by auditing and automatically documenting your IT infrastructure.
Price   £3,000.00