Go crypto/tls: partial TLS 1.2 and TLS 1.3
Answer: The tls package partially implements TLS 1.2 and TLS 1.3.
Certificates
The files must contain PEM encoded data.
A Certificate is a chain of one or more certificates, leaf first.
On successful return, the leaf field of that certificate will be populated.
Suites and versions
CipherSuite is a TLS cipher suite.
The list is sorted by ID.
Others are silently ignored and not negotiated, or rejected.
See also
Claims
- id: C1 claim: Key files must contain PEM encoded data. source: S1 evidence: "The files must contain PEM encoded data."
- id: C2 claim: A Certificate is a chain, leaf first. source: S1 evidence: "A Certificate is a chain of one or more certificates, leaf first."
- id: C3 claim: Key files must contain PEM encoded data. source: S2 evidence: "The files must contain PEM encoded data."
- id: C4 claim: The returned connection is of type Conn. source: S2 evidence: "The returned connection is of type *Conn."
Sources
- [S1] crypto/tls. The Go Authors. https://pkg.go.dev/crypto/tls . License: BSD-3-Clause. Accessed 2026-11-25.
- [S2] crypto/tls source. The Go Authors. https://go.dev/src/crypto/tls/tls.go . License: BSD-3-Clause. Accessed 2026-11-25.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: The Go Authors, crypto/tls; The Go Authors, crypto/tls source. BSD-3-Clause (https://go.dev/LICENSE). Copyright The Go Authors. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: The Go Authors, crypto/tls; The Go Authors, crypto/tls source. BSD-3-Clause (https://go.dev/LICENSE). Copyright The Go Authors.
Cite this
iinventedlight. 2026. "Go crypto/tls: partial TLS 1.2 and TLS 1.3." iinventedlight Library, iil:note:bty2egz6, version of 2026-11-25. https://iinventedlight.com/library/notes/go-tls/. License: CC-BY-4.0.
@misc{iil_note_bty2egz6,
author = {{iinventedlight}},
title = {{Go crypto/tls: partial TLS 1.2 and TLS 1.3}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-25},
url = {https://iinventedlight.com/library/notes/go-tls/},
note = {Permanent ID iil:note:bty2egz6. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- go-tls.schema.json (schema; CC-BY-4.0)
- go-tls.table.json (table; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/go-tls.md.