RankDossier
Check family

HTTPS and SSL certificate problems: missing, expired or mixed

HTTPS encrypts the connection between the visitor and your site, and browsers warn people about sites that do not use it correctly. These checks look for a site without HTTPS, an invalid or soon-expiring SSL certificate, a missing HSTS header and mixed content, where an https page loads files over http. Serve every page over https with a valid certificate, redirect http to it, and load all files securely.

How the problem happens

A certificate is installed by hand and nobody renews it, a host name is missing from the certificate, or old content still points to http addresses for images, scripts or fonts after the move to https.

Why HTTPS and certificate problems cost trust, traffic and crawling

HTTPS encrypts the connection between the visitor and your server, and the certificate proves that the server really belongs to your domain. Browsers mark pages served over plain HTTP as not secure, and they show a full-page warning when the certificate is invalid, expired or issued for another name. Many visitors turn back at that point, and crawlers and AI fetchers that cannot complete a secure connection simply fail to read the page. Google also uses HTTPS as a light ranking signal and prefers to index the secure version.

Two quieter problems sit on top. Without HSTS the first request of a visit can still go over HTTP before the redirect, which leaves a window for tampering and keeps an insecure version in play. And mixed content, an http:// image, script or style sheet on an HTTPS page, is blocked or flagged by browsers, which can break layout and functions and remove the secure padlock. An expired certificate is the most avoidable outage: it arrives on a date known months in advance.

How to check HTTPS and certificates by hand

Open the site in a browser and look at the padlock, then open the certificate details. Check the validity dates, the issuer and the list of names it covers: it must include both the bare domain and the www host if both are used. The command below does the same from a terminal and prints the subject, issuer, dates and alternative names. A wrong name, a missing intermediate certificate or an expiry within a few weeks needs action now.

Request http://example.com and confirm that it redirects with a permanent redirect to the HTTPS address, and that the redirect keeps the path. Then read the response headers of the HTTPS page for Strict-Transport-Security. To find mixed content, open the browser console on an HTTPS page and read the warnings, or search the source for src="http://, href="http:// and url(http://. Check images, scripts, fonts, iframes and CSS files, because a single insecure resource is enough to trigger the warning.

# certificate: subject names, issuer and expiry date
echo | openssl s_client -connect example.com:443 -servername example.com \
  | openssl x509 -noout -subject -issuer -dates -ext subjectAltName

# HSTS header present?
curl -s -I https://example.com/ | grep -i strict-transport-security

# add to the HTTPS server block (Nginx)
add_header Strict-Transport-Security "max-age=31536000" always;

How to fix HTTPS and certificate problems in code, server and CMS

Install a valid certificate from a trusted authority for every host you serve, and automate renewal so that nobody has to remember a date; free certificates with automatic renewal are standard. Serve the full chain, including the intermediate certificate, and support current TLS versions. Redirect all HTTP traffic to the one preferred HTTPS address with a single permanent redirect, as described in the redirects guide, and make sure the CDN or the proxy in front of the server does not add a second hop.

Add the HSTS header once the whole site works over HTTPS. Start with a modest max-age, then raise it, because browsers remember the rule for that long and a mistake is hard to undo. Fix mixed content at its source: change http:// to https:// or to a relative path in templates, the database content of the CMS and the theme files, and where a third party does not offer HTTPS, host the file yourself or drop it. After a migration, update the canonical tags, the sitemap and internal links to HTTPS too. Add an alert that fires several weeks before any certificate expires.

How RankDossier detects HTTPS and TLS problems

RankDossier connects to your site securely and reads the certificate. The checks in this family report a site served without HTTPS, a certificate that is invalid for the host, a certificate that expires soon, a missing HSTS header and pages that load http:// resources on a secure page. The other part of a good setup, the redirect from HTTP, is checked in the redirects family.

Each finding shows what was read, for example the expiry date or the insecure address, so you can act on it directly. The redirect checker tests the path from HTTP to HTTPS, and the guide to broken links and redirects explains how to keep that path to one hop. The technical SEO audit guide puts HTTPS among the base technical signals, and the site migration guide lists the steps for moving a site to HTTPS safely.

Wrong and right

Wrong

http://example.com/  ->  200 OK (no redirect)
<img src="http://cdn.example.com/logo.png">
http://example.com/  ->  301 https://example.com/
Strict-Transport-Security: max-age=31536000
<img src="https://cdn.example.com/logo.png">

How to fix it

WordPress

Set both the WordPress Address and the Site Address to https, renew the certificate automatically through your host, and replace remaining http links in content and theme files.

Next.js

Run the app behind https, send the Strict-Transport-Security header from the headers function, and use https or relative addresses for every image, script and font.

// next.config.js
module.exports = {
  async headers() {
    return [{ source: '/(.*)', headers: [
      { key: 'Strict-Transport-Security', value: 'max-age=31536000' },
    ] }];
  },
};

Nginx

Redirect port 80 to the https host with one 301, point ssl_certificate to a certificate that covers every host name, and add the HSTS header once https works for the whole site.

server {
  listen 80;
  server_name example.com www.example.com;
  return 301 https://example.com$request_uri;
}
add_header Strict-Transport-Security "max-age=31536000" always;

Check codes in this family

These checks belong to this family. Each code appears in the audit report with its own explanation and fix.

  • HTTPS_MISSING No HTTPS
  • TLS_INVALID Invalid SSL certificate
  • TLS_EXPIRING SSL certificate expires soon
  • HSTS_MISSING HSTS is missing
  • SEC_MIXED_CONTENT Mixed content (HTTP on HTTPS)

Read the full guide How to run a technical SEO audit and prioritize the fixes for the wider picture. Test one page for free with the Redirect checker.

Check your own site

Enter a domain – the free pre-check reads up to 10 pages and shows how many types of problems it finds. You pay only if you want the full report.

Start the free pre-check