MC-BARS.COMDomains · SSL · HTTPS · Guides

MC-BARS.COM / Articles / How to Check a Website’s SSL Certificate: Validity, Chain of Trust, and TLS Settings

How to Check a Website’s SSL Certificate: Validity Period, Trust Chain, and TLS Settings

Home / Articles / How to Check a Website’s SSL Certificate: Validity, Chain of Trust, and TLS Settings
Practical Guide · SSL / TLS

How to Check a Website’s SSL Certificate: Validity Period, Trust Chain, and TLS Settings

A step-by-step guide for website owners: checking SSL in a browser, with OpenSSL and curl; diagnosing HTTPS errors; checking certificates across multiple servers; and automatic renewal.

MC-BARS.COM · Updated: November 5, 2026 · Reading time: 22–28 minutes · 4 new illustrations

1. Why Check an SSL Certificate If the Website Already Loads

A website that looks fine does not always have properly configured security. The home page may load over HTTPS, while the payment section displays a warning. The certificate may be renewed on one server but expired on another. The version of the site without www may work, while the www address shows a different name. The cause often becomes clear only after checking the certificate and the entire connection chain.

A thorough SSL check addresses several separate questions: whether a TLS connection can be established, whether the certificate matches the domain name, whether it has expired, whether the browser trusts its issuer, which protocols the server supports, and whether the site correctly redirects HTTP requests to HTTPS. The presence of https:// in the address bar alone is not enough to judge security.

For a small blog, checking takes a few minutes. An online store with a CDN, load balancer, multiple servers, and subdomains needs regular monitoring: individual nodes can serve different certificates. It is especially important to repeat the check after moving hosting, changing DNS, installing a proxy, updating WordPress, or automatically renewing a certificate.

In short: the certificate, chain of trust, and TLS settings are different parts of one system. The absence of a warning in one browser does not replace checking all the addresses in use.
Checking an SSL certificate: browser, expiration date, and issuer information.
Checking an SSL certificate: browser, expiration date, and issuer information. The illustration is schematic and does not show the result of checking a real domain.

2. What to Check: Seven Essential Parameters

For a beginner website owner, it is easier to use a simple checklist. Each item answers a separate question and helps find problems faster. None replaces the others: for example, a valid certificate may match the domain, but the server may still accept outdated connection settings.

ParameterWhat It Should BeWhat to Look For
Domain (SAN)The current address is listed in the certificatewww, subdomains, separate projects
Validity periodThe Not After date has not passedTime zone and automatic renewal
Chain of trustTrust verification completes without errorsIntermediate certificates and CA store
IssuerThe certificate was issued by the expected certificate authorityUnexpected reissues and substitution
TLS settingsA modern set of permitted protocolsTLS 1.2/1.3 and client compatibility
HTTP and HTTPSThe required pages load over HTTPSRedirects, loops, mixed content
RenewalVerified automation and monitoring are in placeThe server reloads the certificate after replacement

Commercial websites require special attention. Check not only the home page, but also the catalog, shopping cart, checkout, and account area. TLS applies to the connection with the domain, but a web application can load external scripts and resources that have their own security requirements.

3. How to Check SSL in Chrome, Firefox, Edge, and Safari

The quickest method starts with the browser. Open the full address, including https:// and, if needed, www. Then open the certificate information using the site information icon or connection settings. The menu locations vary between Chrome, Edge, Firefox, and Safari and change from version to version, so there is no universal sequence of identical buttons.

The certificate information window usually shows the domain name holder, certificate authority, validity dates, and the list of names covered by the certificate. It is useful to open the information for the final page after all redirects. When checking a store, compare the main domain with the address used to open the cart: a third-party payment service may use its own secure connection.

What the Certificate Fields Mean

Subject — certificate subject information. Issuer — who signed it. Not Before and Not After — the start and end of the validity period. Subject Alternative Name (SAN) — a list of permitted DNS names or IP addresses. Modern name-matching checks use SAN; the Common Name field alone should not be considered sufficient confirmation.

Do not rely on the green padlock image shown in older guides. Modern browsers have changed how they indicate a secure connection. In addition, HTTPS confirms that the connection is protected and helps verify the domain, but it does not by itself guarantee that a seller is honest, that there are no viruses, or that the website’s code is secure.

If the browser displays a warning, first record the exact error text, the device’s date and time, the address with or without www, and the result in another browser. Disabling certificate checks is not a fix.

4. How to Find Out When a Certificate Expires

Every public certificate has a validity period during which it can be used. Before the Not Before date, the certificate is not yet valid; after Not After, it is no longer valid. Check not only the calendar date, but also the time: a certificate is not necessarily valid until midnight in the administrator’s local time zone.

Both dates are usually available in the browser’s certificate viewer. In Linux, macOS, and other systems with OpenSSL, you can retrieve them from the certificate presented by the server. The example uses the hypothetical public domain example.com: the command does not change the server or its configuration.

Get the validity dates of the active remote certificate
openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null | openssl x509 -noout -dates

The output contains the lines notBefore=... and notAfter=.... Important limitation: this command shows the dates of the first certificate received from the specified server. It does not prove that the chain is trusted or that the name matches. Additional parameters shown below are needed for those checks.

If the certificate has already been saved in a PEM file on the server, you can check its dates without connecting to the network. This is useful for comparing files on disk with the certificate actually installed. This comparison helps reveal when automation has updated the file but the web server is still serving an older copy.

Check a local PEM file: the path is illustrative
openssl x509 -in /etc/ssl/certs/site.pem -noout -dates

Managed hosting may store certificates in other directories or may not provide direct access to the files at all. In that case, use the hosting control panel and an external HTTPS check.

5. Why SAN, SNI, and the Correct Domain Name Matter

A certificate does not automatically cover every address on the same server. If SAN lists example.com, that does not mean it also covers www.example.com, blog.example.com, or an arbitrary service name. Check each name actually in use separately unless it is covered by a valid Wildcard pattern.

SNI (Server Name Indication) allows a client to tell the server the desired domain name at the start of a TLS connection. Dozens of websites can be hosted on one IP address, and without the correct SNI the server may present a certificate belonging to a neighboring project. That is why manual OpenSSL diagnostics almost always require the parameter -servername, and name verification requires -verify_hostname.

Check the name and trust during the connection
openssl s_client -connect example.com:443 -servername example.com -verify_hostname example.com -verify_return_error </dev/null

A successful check usually includes the message Verify return code: 0 (ok). Read the entire output carefully: the diagnostic utility may continue running when errors occur, and the cause may be related to the CA trust store on a particular computer. The parameter -verify_return_error helps terminate the connection if verification fails.

For a Wildcard certificate of the form *.example.com, valid examples include shop.example.com and api.example.com, but not the two-level name dev.api.example.com. The bare example.com must also be added separately if it is used. More examples are provided in the Wildcard SSL guide.

6. Chain of Trust: Root, Intermediate, and Server Certificates

A website’s TLS certificate is usually signed not directly by a root certificate authority, but by an intermediate one. The browser builds a chain: website certificate → intermediate certificate → trusted root authority. The root certificate is usually stored in the system or browser, while the server sends its own certificate and the necessary intermediates. If an intermediate link is missing, one browser may sometimes reconstruct the chain while another displays an error.

For diagnostics, use OpenSSL output with the parameter -showcerts. It shows the certificates sent by the server, but this alone does not mean that the chain is correct and trusted. This important distinction is often overlooked in short tips found online.

View the certificates sent by the server
openssl s_client -connect example.com:443 -servername example.com -showcerts -verify_return_error </dev/null

If the server uses Nginx or Apache, a full-chain file is often required. It contains the server certificate and the necessary intermediate certificates. You cannot simply concatenate arbitrary PEM files: a bundle might contain an old intermediate certificate that does not belong to the new issuance.

Diagram of trust chain validation from a website to a certificate authority.
Diagram of trust chain validation from a website to a certificate authority. The illustration is schematic and does not show the results of checking a real domain.

Why browsers show different results

Possible causes include different trusted root stores, certificate validation policies, intermediate certificate availability, and corporate proxy settings. Therefore, an issue that occurs only on an old smartphone does not necessarily mean the certificate is damaged. First identify the OS and browser versions, then compare the chain and trusted roots.

7. Checking HTTPS with OpenSSL: a ready-to-use sequence of commands

OpenSSL is useful because it shows the server's actual TLS response, not just the web control panel settings. It is convenient to run the commands from a separate computer that is not on the same local network. This gives a better picture of the connection an ordinary visitor would get. It is still a check from a single network location: a CDN, IPv6, or a load balancer can return a different result.

Three basic diagnostic commands
openssl version
openssl s_client -connect example.com:443 -servername example.com -brief </dev/null
openssl s_client -connect example.com:443 -servername example.com -verify_hostname example.com -verify_return_error </dev/null

The first command shows the utility version. The second displays brief details about the established connection, including the negotiated protocol version and cipher. The third also checks the certificate and domain name. The output and available options depend on the OpenSSL version, so, if necessary, use the instructions for the installed release.

How to find the issuer and SAN

Certificate summary
openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null | openssl x509 -noout -subject -issuer -dates -ext subjectAltName

The output shows the subject, issuer, validity period, and SAN list. If the certificate contains many names, the list may be long. Do not edit the names manually in the browser: if they are missing, you need a new certificate with the correct set of addresses.

Checking with OpenSSL does not install anything on the site. No options to disable verification are used, and no private keys are requested. A web server's private key is never needed for routine external SSL diagnostics.

8. The curl command: certificate, redirects, and HTTP response

Unlike viewing the certificate, curl also helps you see the web server's response. The command curl -I requests the headers; -v prints diagnostic information about the TLS connection. This is a simple way to find out whether the site responds, whether HTTPS is configured correctly, and which URL is involved in a redirect.

Check HTTPS and response headers
curl -Iv --max-time 15 https://example.com/

Look for certificate verification messages and the HTTP status in the output. A 200 response means the HTTP request succeeded, while 301 or 308 indicates a permanent redirect. A 404 is not necessarily related to the certificate: the TLS connection may succeed even though the page at the requested address does not exist. TLS errors and web application errors must not be conflated.

View the initial redirect and the entire redirect chain
curl -I --max-time 15 http://example.com/
curl -IL --max-time 15 http://example.com/

A working configuration usually has a clear redirect from HTTP to the canonical HTTPS address, without loops or unnecessary intermediate pages. Keep in mind: -L allows curl to follow redirects, and the number of redirects and destination address should be checked separately. The recommendation to use -k or --insecure to fix errors is harmful: these options disable trust verification and hide the problem itself.

To compare behavior for a specific IP address, you can use curl --resolve example.com:443:203.0.113.10 https://example.com/, substituting a valid IP for the documentation address. This preserves the site name in TLS and allows you to check individual nodes. Use this only for addresses the administrator controls or is authorized to diagnose.

9. How to determine support for TLS 1.2, TLS 1.3, and cipher suites

A certificate can be valid while the server configuration is outdated. The TLS protocol has changed over many years: versions 1.0 and 1.1 should no longer be used for modern public websites. TLS 1.2 remains widely used for compatibility, while TLS 1.3 provides a modern mechanism for negotiating connection parameters. However, the TLS version is only one part of the assessment; algorithms, settings, and client support also matter.

Check TLS 1.2 and TLS 1.3 connections
openssl s_client -connect example.com:443 -servername example.com -tls1_2 -brief </dev/null
openssl s_client -connect example.com:443 -servername example.com -tls1_3 -brief </dev/null

A successful command shows that the selected version can be negotiated with this server and the installed client. An error does not always prove that the server prohibits the protocol: the local OpenSSL version or the device's cryptographic policies can also restrict the connection. Therefore, a definitive assessment uses several tools and external testing.

There is no need to enable every possible cipher just to support outdated devices. It is better to follow supported applications, Mozilla recommendations, and users' actual requirements. Some performance optimizations or additional settings apply only to particular server and proxy versions; copying someone else's configuration file without checking it can cause an outage.

External diagnostics for a TLS server and secure connection settings.
External diagnostics for a TLS server and secure connection settings. The illustration is schematic and does not show the results of checking a real domain.

10. Checking a website with SSL Labs: understanding the results

Qualys SSL Labs Server Test is a public service for detailed analysis of the TLS configuration of a web server accessible from the internet. It examines the certificate, trust chain, protocol versions, some encryption settings, and compatibility features. For a regular website, it is a useful independent check after HTTPS is configured.

Read the report beyond its final letter grade. The rating may be lowered because of chain issues, support for outdated protocols, or a poor configuration. But even a high score does not mean the site is free of WordPress vulnerabilities, unsafe plugins, authorization errors, or malicious scripts. A TLS test evaluates the connection, not the security of the entire business.

A public test makes external connections and may reveal to the service that the domain is being checked. Do not submit addresses for internal administrative systems or private infrastructure. For private servers, use local diagnostic tools and checks from an authorized network.

How to compare results correctly

Repeat the test after fixing the configuration. If the site uses a CDN, the report may reflect the CDN edge node rather than the hosting server. The security of the CDN → origin connection must be checked separately. Results may also vary between nodes when there are multiple IP addresses.

11. Why one domain shows different certificates

A public website rarely relies on just one server. DNS may return multiple A and AAAA records. A load balancer distributes traffic among nodes, while a CDN serves visitors from different regions. Therefore, a check from a home computer does not guarantee that a user on another provider or device will see the same certificate.

View the main DNS records, if the dig utility is available
dig +short A example.com
dig +short AAAA example.com
dig +short CNAME www.example.com

If multiple IPs are found, identify their purpose and check each serving node. IPv6 deserves particular attention: sometimes the certificate is updated only on the IPv4 server, while visitors with IPv6 support reach a different configuration. When a site is migrated, old DNS records may continue pointing to the previous host for some time.

If a reverse proxy is used, there are two separate connections: browser → proxy and proxy → origin server. The certificate for the first connection is installed on the proxy; the second may require a separate certificate and hostname check. A good SSL Labs result for the external domain says nothing about the connection settings between these components.

The solution is not to reissue certificates en masse, but to map the actual request path: DNS, CDN, load balancer, web server, containers, and service subdomains. At each point, check what terminates TLS and which certificate it presents.

12. How to check a certificate on Beget, REG.RU, and in WordPress

On managed hosting, administrators usually work in a control panel rather than the command line. In the interface, find the domain, HTTPS, or SSL settings; make sure the certificate is active for the required name; and check its expiration date and automatic renewal status. The exact section names depend on the platform and control panel version.

On Beget, check that the site and domain match, the certificate has been issued, DNS is configured, and HTTPS redirection is in place. REG.RU works similarly in principle, but the steps depend on the product: virtual hosting, VPS, or a separate certificate service may use different installation methods. Detailed instructions are available in SSL on Beget and SSL on REG.RU.

In WordPress, compare the WordPress Address and Site Address fields with the canonical HTTPS domain. After a migration, check that styles, images, JavaScript, and admin pages load. A plugin that rewrites links to HTTPS does not fix an expired certificate at the web server level. So check TLS first, then the page content.

A separate guide is available for diagnosing mixed content: Mixed Content — Causes and Fixes. It is useful after configuring a certificate if the browser continues to block insecure resources.

13. Automatic SSL renewal and expiration monitoring

Certificates are no longer documents that can conveniently be installed once and left in place for many years. As of November 2026, CA/Browser Forum rules limit the maximum validity period of new public TLS certificates to 200 days for certificates issued on or after March 15, 2026. The maximum is set to decrease to 100 days on March 15, 2027, and to 47 days on March 15, 2029. These limits do not mean that every authority issues certificates for the full allowed period; some use much shorter intervals.

The main safeguard against expiration is not a manual calendar entry, but automatic renewal with the result checked. For servers using Certbot, the test command sudo certbot renew --dry-runlets you check the procedure without a regular production issuance. However, a successful dry run does not guarantee that the server will actually reload the new files after a future renewal; this must also be monitored.

Check certificates known to Certbot and the renewal procedure
sudo certbot certificates
sudo certbot renew --dry-run

Set up notifications for approaching expiration dates, ACME failures, DNS errors, and service reload failures. It is better to monitor from outside so that you check the actual certificate visitors receive. The presence of a new file on disk does not mean that Nginx or Apache has started using it.

Certificate expiration monitoring and renewal alerts.
Certificate expiration monitoring and renewal alerts. The illustration is schematic and does not show the results of checking a real domain.

When designing monitoring, it is a good idea to use several alert thresholds—for example, one well in advance and another closer to expiration—as well as a separate alert for renewal failures. The specific intervals depend on the certificate's validity period, administrator availability, and site criticality. For automated platforms, reliably detecting a failure and checking again is more important than a calendar reminder.

A list of third-party monitoring services is available on the official Let’s Encrypt page. These are examples, not mandatory or unconditionally recommended providers.

14. Common certificate errors: causes and actions table

Browser messages can look alarming, but many cases come down to a few clear causes. The main thing is not to try to disable the warning, but to identify its source. Common cases and how to check them are listed below.

Message or symptomLikely causeWhat to check first
ERR_CERT_DATE_INVALIDExpired certificate or incorrect timeNot After, device clock, automatic renewal
ERR_CERT_COMMON_NAME_INVALIDName in SAN does not match the addresswww, SAN, SNI, and selected vhost
ERR_CERT_AUTHORITY_INVALIDTrust chain not trustedIntermediate CAs, self-signed certificate
SSL_ERROR_BAD_CERT_DOMAINConnection to a different hostnameDNS, CDN, certificate for the specific domain
Works only on an old deviceDifferent root stores or TLS capabilitiesOS version, chain, protocol support
Some images or scripts do not workMixed Content or blocked resourceBrowser console, resource URLs, CSP policy
Redirect loopConflicting HTTP/HTTPS rulesNginx/Apache, CMS, CDN, X-Forwarded-Proto
SSL is active in the control panel, but the browser shows a warningAnother server is presenting an old certificateDNS A/AAAA, load balancer, service reload

For ERR_CERT_DATE_INVALID, compare the certificate's validity dates with the device's current time. If the name does not match, check each domain variant separately. For an issuer error, find out which certificates the server is actually sending and which root authority the affected device uses.

If the error appears after an update, it is useful to check the browser and DNS caches, but clearing the cache does not replace correct server configuration. After fixing the issue, repeat the external test and make sure the problem is resolved in an independent browser.

15. Checking on a mobile phone: Android and iPhone

On a phone, SSL is checked in the browser just as it is on a computer, but the certificate details menu may be less comprehensive. Android uses Chrome or other browsers with their own controls. On iPhone, Safari may show only some connection information, so a desktop browser or an external test is more convenient for detailed analysis.

The fact that a page opens on a phone does not show that all networks and devices will receive the same certificate. A mobile carrier may use a different route to the CDN, and a device may use a different set of trusted root certificates. This is especially important if complaints come only from a particular country or network, or from older smartphone models.

For testing, compare access over Wi-Fi and a mobile network, record the date, address, and error message, and then check the domain with an external tool. Do not enter credit card details or passwords on a page displaying a certificate warning.

16. Practical checklist before publishing and after moving a site

Before publishing, it is useful to run through one short scenario for each important domain name. First, check the DNS records. Then open the HTTPS address and review the certificate fields. After that, test the redirect from HTTP, load pages with images and JavaScript, check for errors in the browser console, and run an independent TLS test.

  1. List all addresses: the main domain, www, service subdomains, and separate applications.
  2. Check A, AAAA, and CNAME records; note where a CDN or load balancer is used.
  3. Check that every node presents the expected certificate with the correct SNI.
  4. Compare the SAN with the names in use, and make sure the dates and trusted chain are correct.
  5. Check TLS 1.2/1.3 and disable unnecessary outdated protocols.
  6. Check redirect chains and make sure there is no mixed content.
  7. Check that the server reloads the certificate files after they are updated.
  8. Set up external monitoring and record the date of the last check.

After changing hosting providers or installing a CDN, it is useful to repeat this list from another device and over a mobile network. Most unpleasant errors do not occur when the certificate is issued, but during infrastructure changes, when some requests continue going to the old server.

Completing the checklist does not guarantee absolute security, but it helps find common failures before visitors encounter them. It is most useful when applied regularly, not just after a complaint.

17. Frequently asked questions about checking an SSL certificate

Can I check SSL for free?

Yes. A browser, OpenSSL, curl, and the public SSL Labs service provide enough information for basic diagnostics. Paid monitoring can be useful for multiple projects, complex infrastructure, and notifications, but it is not required for an initial check.

Why does the server have a new certificate, but the browser sees the old one?

A common reason is that the web server has not reloaded its configuration, the certificate has not been updated on all nodes, the CDN is using a different certificate, or DNS points to the previous IP. You need to check the certificate actually being presented, not just the local PEM file.

Can I find out when a certificate expires without access to the hosting account?

Yes. If the site is accessible over the internet, the date is in the certificate the server presents during the TLS connection. You can view it in a browser, with OpenSSL, or through a public service. You do not need the private key or the hosting account password.

Does a high SSL Labs score confirm that a site is completely secure?

No. It indicates the quality of some aspects of the TLS configuration. CMS vulnerabilities, weak passwords, business logic errors, server compromise, and fraudulent content remain separate risks.

How often should SSL be checked?

A one-time check should be performed after installation, migration, or DNS changes. For ongoing operation, it is best to enable automated monitoring of expiration dates and TLS errors. For a critical site, the check frequency is determined by availability requirements and certificate validity periods.

Is the certificate different for www and the domain without www?

These are two different domain names. They can be included in a single SAN certificate or served by different certificates. Check them separately, even if one address redirects to the other.

18. Conclusion: how to make sure HTTPS is really working

A successful SSL check is not just one green icon, but several verified facts. The site presents the correct certificate for all required addresses, the dates are within the valid period, the chain of trust is correct, the server supports modern TLS settings, the pages do not load insecure resources, and the renewal process has been tested and is monitored.

For most small sites, a browser, OpenSSL or curl, and an independent SSL Labs test are sufficient. For infrastructure with multiple servers, add checks for DNS, CDN, IPv6, and automated notifications. This approach reduces unexpected warnings and helps visitors open the site with confidence.

After basic diagnostics, practical next steps include guides to issuing Let’s Encrypt certificates, to configuring WordPress and to fixing Mixed Content. Each of these tasks addresses one part of the overall HTTPS issue.

19. Official sources and date of review

Updated November 5, 2026. Official sources were used to verify commands and technical requirements. The settings for a particular hosting provider, OpenSSL version, and browser may differ from the examples provided.

IP Geolocation by DB-IP