Skip to content

Commit

Permalink
Improve the TLS settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
blaubaer committed Jun 19, 2024
1 parent e2f7fef commit 0093d60
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,16 @@ func (this *Lingress) createTlsConfig() (*tls.Config, error) {
}

result := tls.Config{
MinVersion: tls.VersionTLS12,
CipherSuites: []uint16{
tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,
tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,
tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,
},
Certificates: []tls.Certificate{},
GetCertificate: this.resolveCertificate,
}
Expand Down

0 comments on commit 0093d60

Please sign in to comment.