Closed
Description
What version of Go are you using (go version
)?
$ go version go version go1.19.4 darwin/arm64
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env
)?
go env
Output
$ go env GO111MODULE="" GOARCH="arm64" GOBIN="" GOCACHE="$HOME/Library/Caches/go-build" GOENV="$HOME/Library/Application Support/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="arm64" GOHOSTOS="darwin" GOINSECURE="" GOMODCACHE="$HOME/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="darwin" GOPATH="$HOME/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="$HOME/.gvm/gos/go1.19.4" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="$HOME/.gvm/gos/go1.19.4/pkg/tool/darwin_arm64" GOVCS="" GOVERSION="go1.19.4" GCCGO="gccgo" AR="ar" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="/dev/null" GOWORK="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=$HOME/.tmp/go-build2231328078=/tmp/go-build -gno-record-gcc-switches -fno-common"
What did you do?
Set tls.Config.MinVersion
to tls.VersionTLS13
and use that config to perform a TLS handshake.
What did you expect to see?
The server should see that tls.ClientHelloInfo.CipherSuites
is set to tls.defaultCipherSuitesTLS13NoAES
.
What did you see instead?
The servers sees TLS 1.2 cipher suites in tls.ClientHelloInfo.CipherSuites
.
#49293 fixes this bug.
Activity
gopherbot commentedon Jan 13, 2023
Change https://go.dev/cl/360794 mentions this issue:
crypto/tls: advertise correct ciphers in TLS 1.3 only mode
seankhliao commentedon Jan 13, 2023
cc @golang/security
marten-seemann commentedon May 24, 2023
Any chance this issue could be resolved any time soon? This is becoming more relevant now that crypto/tls is gaining QUIC support (#44886), since QUIC only uses TLS 1.3.
For reference, I've made the equivalent change to my crypto/tls fork for quic-go in quic-go/qtls-go1-20@a42b12e. With #60107, I finally won't need to fork crypto/tls any more, so it would be nice to have this in crypto/tls.
4 remaining items