Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
remove cipher suites and default to tls1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
blankdots committed Jan 23, 2024
1 parent 7e9802b commit 8c2f7c3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,8 @@ func Setup() *http.Server {
// Configure TLS settings
log.Info("(3/5) Configuring TLS")
cfg := &tls.Config{
MinVersion: tls.VersionTLS12,
CurvePreferences: []tls.CurveID{tls.CurveP521, tls.CurveP384, tls.CurveP256},
PreferServerCipherSuites: true,
CipherSuites: []uint16{
tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
},
MinVersion: tls.VersionTLS13,
CurvePreferences: []tls.CurveID{tls.CurveP521, tls.CurveP384, tls.CurveP256},
}

// Configure web server
Expand Down

0 comments on commit 8c2f7c3

Please sign in to comment.