ssl-guides 2026-12-02 ⏱ 4 min read

What Is TLS-ALPN-01 Validation? A Clear Guide

What Is TLS-ALPN-01 Validation? A Clear Guide

TLS-ALPN-01 is an ACME challenge defined in RFC 8737. Where HTTP-01 uses port 80 and DNS-01 uses a TXT record, this challenge happens entirely inside a TLS handshake on port 443. It exists for cases where the web port is closed but HTTPS is open.

How TLS-ALPN-01 validation works

ALPN (Application-Layer Protocol Negotiation) is a TLS extension that lets the client and server agree on which protocol to speak, such as h2 or http/1.1. TLS-ALPN-01 adds a special protocol name, acme-tls/1.

  1. The client asks for a certificate and receives a token from the CA.
  2. The client builds a self-signed certificate for the domain. It carries a special extension holding a hash of the token and the account key.
  3. The client configures the server to present that certificate only when a handshake offers the acme-tls/1 protocol.
  4. The CA connects to port 443, sends the SNI name and that ALPN value, and reads the certificate.
  5. If the extension matches, validation succeeds. Normal visitors are never shown the special certificate.

Because the CA sends the domain name through SNI, it helps to understand how SNI works first.

TLS-ALPN-01 compared with HTTP-01 and DNS-01

HTTP-01DNS-01TLS-ALPN-01
Port needed80None (DNS only)443
WildcardsNoYesNo
Needs DNS APINoUsuallyNo
Works behind a web proxyOftenYesOnly if the proxy passes TLS through
Client supportNearly allWideNarrower

When it is a good fit

  • Port 80 is blocked by policy but HTTPS is allowed.
  • You run a TLS-terminating server or load balancer that can answer the challenge itself.
  • You cannot give an ACME client access to DNS.
  • You use software with built-in ACME support, where the server handles the special certificate for you.

Caddy and some other servers handle this challenge natively. See automatic HTTPS with Caddy for the server-managed approach.

Example

Servers with built-in ACME hide the mechanics, but a client that supports this challenge usually needs a flag. With the lego client it looks like this:

lego --email you@example.com --domains example.com \
  --tls run

The exact flags differ by client and version, so check your client's documentation. Here the client binds port 443 itself, so stop any other service that is listening there during validation.

Limits and pitfalls

  • No wildcards. The challenge covers a specific hostname.
  • Proxies get in the way. A CDN or reverse proxy that terminates TLS will answer with its own certificate and the check fails. The proxy must pass the connection through to the ACME client.
  • Support varies. Not every client or hosting control panel implements it, and some CAs may not offer it. Check the CA's current docs.
  • Older TLS stacks. The server needs ALPN support and the ability to choose a certificate by protocol.

Troubleshooting

You can test whether a server answers ALPN with OpenSSL. This only shows whether the protocol is selected, because normal certificates will not carry the special extension unless a challenge is active.

openssl s_client -connect example.com:443 \
  -servername example.com -alpn acme-tls/1 </dev/null

If validation fails, confirm that port 443 is open, that DNS points to the right host and that no proxy sits in front. The general advice in fixing validation errors applies here too. For a broader view of the other options, read what the ACME protocol is.

Security notes

The special certificate is self-signed and only presented during validation, so it does not weaken normal traffic. The token is bound to your account key, which means an attacker who can see the handshake cannot reuse it for another account. As with every ACME challenge, protect the account key and each private key, as covered in how to protect SSL private keys.

In practice, most people never choose this challenge by hand. They use a server such as Caddy, or a load balancer with ACME built in, and let it decide. Reach for TLS-ALPN-01 yourself only when you have a clear reason, such as a locked-down network that exposes only port 443, and when your tooling lists it as supported.

Key takeaways

  • TLS-ALPN-01 validates over port 443 using the acme-tls/1 protocol.
  • It cannot issue wildcards and does not work through TLS-terminating proxies.
  • Choose it when port 80 is closed and DNS cannot be automated.
  • Prefer a client or server with built-in support rather than hand-rolling the handshake.

Related reading: DNS-01 validation and certificate signing requests.

Frequently Asked Questions

Is TLS-ALPN-01 the same as HTTP-01 over TLS?

No. HTTP-01 serves a file on port 80. TLS-ALPN-01 puts a hash of the token in a special certificate that is only shown when the client asks for the acme-tls/1 protocol.

Can I get a wildcard certificate with it?

No. It validates one hostname per handshake, so wildcards still need DNS-01.

Does it work behind Cloudflare or a load balancer?

Only if the proxy passes the TLS connection through to the server that answers the challenge. A proxy that terminates TLS answers with its own certificate and the check fails.

Which clients support it?

Server software with built-in ACME such as Caddy handles it natively, and some standalone clients offer a flag. Support varies, so check your client's documentation.

Why did validation fail even though port 443 is open?

Usually a proxy in front of the server, a DNS record pointing elsewhere, or a server without ALPN support. Test the handshake with openssl s_client -alpn acme-tls/1 first.

🔐 Test Your Server TLS 1.3 & Cipher Support
Test TLS 1.3 →

✅ Post-Installation Verification & SEO Checklist

After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:

  • Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
  • Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
  • Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
  • Confirm both root and www versions resolve cleanly to one canonical HTTPS URL.
  • Verify your HTTPS property and sitemap.xml inside Google Search Console and Bing Webmaster Tools.
Technically Reviewed by TryFreeSSL Security Team
Last updated: 2026-12-05
About Us →

Free SSL Certificates, Live SSL Checker & CSR Generator

Issue trusted Let's Encrypt SSL certificates in 60 seconds with zero server setup.

Related Articles

🤖 TryFreeSSL AI Assistant