Skip to content

Commit 61e7fbc

Browse files
committed
[release-v2.0] Do not specify TLS curve preferences
TLS 1.2 is already the required minimum TLS version, which does not support any insecure curves. Additionally, setting the curve preferences disables the X25519MLKEM768 key exchange, which would otherwise be used by default beginning in Go 2.24. Backport of a491052.
1 parent c9d7e6a commit 61e7fbc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

chain/sync.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,8 +569,7 @@ func (s *Syncer) Run(ctx context.Context) (err error) {
569569
pool := x509.NewCertPool()
570570
pool.AppendCertsFromPEM(s.opts.CA)
571571
tc := &tls.Config{
572-
MinVersion: tls.VersionTLS12,
573-
CurvePreferences: []tls.CurveID{tls.X25519, tls.CurveP256},
572+
MinVersion: tls.VersionTLS12,
574573
CipherSuites: []uint16{ // Only applies to TLS 1.2. TLS 1.3 ciphersuites are not configurable.
575574
tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,
576575
tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,

0 commit comments

Comments
 (0)