Allow QUIC to use a tls.Config with MinVersion below TLS 1.3
QUIC requires TLS 1.3 (RFC 9001), so crypto/tls currently rejects a tls.Config used for QUIC unless MinVersion is VersionTLS13 or higher. This forces servers that share one config between TCP and QUIC to clone it. A dual-stack HTTP server is a common example: HTTP/2 accepts TLS 1.2+, while HTTP/3 needs TLS 1.3 only. Cloning adds overhead and has become harder after recent changes to Config.Clone.
The proposal removes the MinVersion check for QUIC. When a config is used for QUIC, crypto/tls internally raises the effective minimum to TLS 1.3. The Config value itself is left unchanged, so TCP connections still use the original setting. QUIC-only configs behave as before.
cfg := &tls.Config{
MinVersion: tls.VersionTLS12,
Certificates: certs,
}
// The same cfg now works for both:
// TCP/HTTP/2 accepts TLS 1.2+, QUIC/HTTP/3 negotiates TLS 1.3 only.
conn := tls.QUICServer(&tls.QUICConfig{TLSConfig: cfg})
- Proposal
- #77631 by marten-seemann
- Status
- Accepted on Mar 18, 2026
- Impact
- low
- Area
- crypto/tls