SSL/TLS and Web Security: Certificates, HTTPS, TLS 1.3, CAA, HSTS, and Errors

SSL/TLS and web security is the stack of cryptographic protocols (TLS 1.2 and TLS 1.3), X.509 digital certificates, DNS CAA policies, and HTTP headers (HSTS) that encrypt connections and authenticate server identity. Browsers and mail servers verify certificates on every handshake. The 6 layers secure web, email, and DNS.

How the 6 Layers of SSL/TLS, PKI, and Transport Security Fit Together

Securing a modern domain requires more than installing an SSL certificate file on port 443: certificate issuance, handshake negotiation, browser downgrade prevention, inbound email encryption, and encrypted DNS lookups all depend on 6 interconnected layers across DNS, TLS, and HTTP. The table below compares the 6 layers of transport security covered in this guide by protocol mechanism, what each layer protects, governing IETF/CA standards, and primary failure symptom.

Security Layer Protocol / Mechanism What It Secures Governing Standards Primary Failure Symptom
1. TLS Handshake Protocol TLS 1.3 (1-RTT, 0-RTT) & TLS 1.2 (ECDHE + AEAD ciphers). Encrypts data in transit and enforces Perfect Forward Secrecy (PFS). RFC 8446 (TLS 1.3), RFC 5246 (TLS 1.2), RFC 8996 ERR_SSL_VERSION_OR_CIPHER_MISMATCH or ERR_SSL_PROTOCOL_ERROR.
2. Public Key Infrastructure (PKI) X.509 Certificates (SANs, leaf + intermediate CA chain fullchain.pem). Proves the server at the IP address genuinely owns the domain name. RFC 5280 & CA/Browser Forum Baseline Requirements NET::ERR_CERT_COMMON_NAME_INVALID, ERR_CERT_DATE_INVALID, or ERR_CERT_AUTHORITY_INVALID.
3. Automated Issuance & DNS Policy ACME (HTTP-01 / DNS-01) & DNS CAA Records (Type 257). Automates 90-day renewals (Let's Encrypt) and restricts which CAs are authorized to issue certificates. RFC 8555 (ACME) & RFC 8659 (CAA) Silent renewal failure when CAA blocks a CDN's CA or DNSSEC returns SERVFAIL.
4. Browser HTTPS Enforcement HSTS Header (Strict-Transport-Security) & Mixed Content controls. Forces browsers to use HTTPS exclusively and blocks insecure http:// sub-resources. RFC 6797 (HSTS) & W3C Mixed Content Spec Broken padlock icon, blocked scripts/styles, or ERR_TOO_MANY_REDIRECTS loops.
5. Email Transport Encryption SMTP STARTTLS, MTA-STS (_mta-sts), & TLS-RPT (_smtp._tls). Prevents downgrade attacks on inbound email between mail servers on port 25. RFC 3207, RFC 8461 (MTA-STS), & RFC 8460 Cleartext email interception or 421 / 550 TLS policy rejection in TLS-RPT JSON logs.
6. Encrypted DNS & Origin Signing DoH (Port 443), DoT (Port 853), DoQ, & DNSSEC. Encrypts DNS queries to recursive resolvers and cryptographically signs zone records. RFC 8484 (DoH), RFC 7858 (DoT), & RFC 4033-4035 ISP DNS snooping/hijacking or SERVFAIL when parent DS mismatches child DNSKEY.

Explore the guides in three sections: Section 1 covers core SSL/TLS protocols, Certificate Authorities, Let's Encrypt automation, HSTS, and browser error fixes, Section 2 covers DNS certificate restrictions (CAA), encrypted DNS (DoH/DoT), and email TLS (MTA-STS/TLS-RPT), and Section 3 links to our 8 free browser-based diagnostic checkers.

1. Core SSL/TLS Protocols, Certificates, Let's Encrypt, HSTS, and Error Guides (8 Guides)

Eight guides explain how SSL/TLS encryption and the 1-RTT handshake work, compare TLS 1.0 through TLS 1.3, walk through free Let's Encrypt ACME automation, and show how to fix every browser certificate warning and mixed-content error. Select a guide below:

2. DNS Certificate Authorization (CAA), Encrypted DNS (DoH/DoT), and Email TLS (MTA-STS) Guides (8 Guides)

Eight guides cover the DNS records that control certificate issuance (CAA), encrypt DNS queries (DoH and DoT), enforce TLS on inbound email (MTA-STS and TLS-RPT), and bind brand logos to verified mark certificates (BIMI VMC). Open a guide below:

3. Free Browser-Based SSL/TLS, CAA, MTA-STS, and DNS Security Checkers (8 Tools)

Audit your domain's CAA certificate restrictions, test live mail server STARTTLS handshakes, validate MTA-STS and TLS-RPT policies, and verify that both IPv4 (A) and IPv6 (AAAA) records point to servers with valid certificates using our 8 tools below:

Every protocol guide, troubleshooting playbook, and diagnostic tool in this SSL/TLS and Web Security reference guide helps you deploy TLS 1.2 and TLS 1.3 encryption, automate Let's Encrypt (ACME) renewals, lock issuance with DNS CAA records, and enforce HSTS and MTA-STS transport security.

Frequently asked questions

What is the difference between SSL, TLS, and HTTPS?+

SSL (Secure Sockets Layer) is the original 1995 encryption protocol that is now retired. TLS (Transport Layer Security) is the modern cryptographic upgrade (TLS 1.2 and TLS 1.3) that replaced SSL, even though people still casually call the certificates "SSL certificates". HTTPS is simply the standard HTTP web protocol running inside an encrypted TLS connection on port 443.

Do DNS records affect SSL/TLS certificate issuance and renewal?+

Yes, DNS directly controls three parts of SSL/TLS: first, your A and AAAA records determine which server IP the browser connects to on port 443 (pointing to the wrong IP triggers a hostname mismatch error); second, your CAA record restricts which Certificate Authorities are authorized to issue certificates for your domain; and third, automated _acme-challenge TXT or CNAME records prove domain ownership so Let's Encrypt and CDNs auto-renew certificates every 60 to 90 days.

Why does Cloudflare show "ERR_TOO_MANY_REDIRECTS" after I enabled SSL?+

In real-world Cloudflare setups, an infinite redirect loop happens when Cloudflare's SSL/TLS mode is set to Flexible while your origin web server (NGINX, Apache, or WordPress) is configured to redirect all http:// requests to https://. Under Flexible mode, Cloudflare connects to your origin over port 80 (http://), your origin redirects Cloudflare back to https://, and the loop repeats forever. Set your SSL/TLS encryption mode to Full (Strict) with a valid origin certificate when using Cloudflare's orange-cloud proxy, rather than Flexible, which leaves traffic between Cloudflare and your origin server unencrypted over HTTP.

What should I verify before enabling HSTS preloading on my domain?+

HTTP Strict Transport Security (HSTS) instructs web browsers to load your domain exclusively over HTTPS and refuse to connect over insecure HTTP. Submitting your domain to the browser HSTS preload list is effectively irreversible and forces HTTPS across all current and future hostnames. Verify that every internal and external subdomain has a valid, auto-renewing TLS certificate before adding includeSubDomains or submitting your domain to hstspreload.org.