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:
What Is SSL/TLS? Encryption, Certificates & Handshakes
How SSL vs TLS vs HTTPS work, the 3 security guarantees, asymmetric vs symmetric encryption, and the 6 certificate types (DV, OV, EV, Wildcard).
GuideTLS Versions Explained: TLS 1.0, 1.1, 1.2, and TLS 1.3
Release dates (1999 to August 2018), 1-RTT vs 2-RTT handshakes, the 5 AEAD cipher suites, RFC 8996 deprecations, and NGINX/Apache configs.
GuideSSL Certificate Errors: Browser Codes & Fixes
Fix ERR_CERT_COMMON_NAME_INVALID, ERR_CERT_DATE_INVALID, ERR_CERT_AUTHORITY_INVALID (missing fullchain.pem), and Cloudflare 525/526 errors.
GuideCertificate Authorities (CAs) and the Web of Trust
How Root CAs, Intermediate CAs, root stores, Certificate Transparency (CT) logs, and OCSP/CRL revocation validate domain identity.
GuideLet's Encrypt: Free Certificates & ACME Automation
Automate 90-day certificates with Certbot using HTTP-01 (port 80) and DNS-01 (_acme-challenge TXT) validation for wildcard domains.
GuideHSTS: HTTP Strict Transport Security Explained
Prevent SSL-stripping downgrade attacks with max-age, includeSubDomains, and the browser HSTS Preload List.
GuideMixed Content Warnings: Causes and Fixes
Find and fix insecure http:// images, scripts, and stylesheets that break the HTTPS padlock on secure pages.
GuideHTTPS vs DNSSEC: Encryption vs Authentication
Understand why HTTPS encrypts the web session while DNSSEC verifies that the DNS IP lookup itself was not spoofed.
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:
CAA Record (Certificate Authority Authorization)
Restrict which CAs are authorized to issue certificates for your domain using issue, issuewild, iodef, and RFC 8657 ACME accounturi pinning.
GuideDNS-over-HTTPS (443) vs DNS-over-TLS (853)
Compare how DoH, DoT, and DNS over QUIC (DoQ) use TLS 1.3 to encrypt DNS queries between devices and recursive resolvers.
GuideWhat Is DNSSEC? Chain of Trust & Signatures
How RRSIG, DNSKEY, and DS records authenticate DNS lookups and prevent SERVFAIL errors during CAA validation.
GuideMTA-STS: Enforcing TLS for Inbound Email
Publish RFC 8461 policies that require sending mail servers to negotiate TLS 1.2 or TLS 1.3 with a valid certificate.
GuideMTA-STS Record & Policy File Setup
Configure _mta-sts DNS TXT records and host the /.well-known/mta-sts.txt HTTPS file without certificate mismatches.
GuideTLS-RPT: SMTP TLS Failure Reporting
Receive daily JSON telemetry from Gmail and Microsoft whenever an inbound SMTP TLS handshake or certificate check fails.
GuideTLS-RPT Record Syntax (_smtp._tls)
Format v=TLSRPTv1; rua=mailto: reporting records in DNS to monitor MTA-STS and DANE encryption health.
GuideBIMI VMC: Verified Mark Certificates
How Certificate Authorities issue VMC and CMC cryptographic certificates to display verified brand logos in email inboxes.
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:
CAA Record Lookup
Query Type 257 CAA records across 3 resolvers, trace CNAME and parent inheritance, test CA permissions, build CAA records, or bulk check 10 domains.
Free ToolSMTP Connectivity & STARTTLS Tester
Test live mail server connections, banner responses, and STARTTLS encryption support across MX hosts.
Free ToolMTA-STS Record Checker
Verify both your _mta-sts DNS TXT record and your hosted https://mta-sts.<domain>/.well-known/mta-sts.txt policy file.
Free ToolTLS-RPT Record Checker
Validate your _smtp._tls TXT record syntax and reporting URI for SMTP TLS failure reports.
Free ToolDNSSEC Checker
Ensure your DNSSEC chain is healthy (AD=1) so broken DS records never block Let's Encrypt CAA validation checks.
Free ToolA Record Lookup
Verify the exact IPv4 address your domain resolves to when troubleshooting SSL hostname mismatch errors.
Free ToolAAAA Record Lookup (IPv6)
Check for leftover IPv6 AAAA records pointing to old web hosts that trigger ERR_CERT_COMMON_NAME_INVALID on mobile networks.
MonitoringAutomated 6-Hour DNS & Security Monitoring
Get alerted via email whenever your A, AAAA, CAA, MX, or DNSSEC DS records drift or expire unexpectedly.
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.