Skip to content

Commit

Permalink
Always use min tls 1.2 or lower to ensure compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
moloch-- committed Sep 20, 2022
1 parent 9c109bd commit 620bdd7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/c2/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ func getHTTPSConfig(conf *HTTPServerConfig) *tls.Config {
// Randomize the JARM fingerprint
switch insecureRand.Intn(3) {
case 0:
tlsConfig.MinVersion = tls.VersionTLS13
// tlsConfig.MinVersion = tls.VersionTLS13
fallthrough // For compatibility with winhttp
case 1:
tlsConfig.MinVersion = tls.VersionTLS12
case 2:
Expand Down Expand Up @@ -294,7 +295,7 @@ func getHTTPSConfig(conf *HTTPServerConfig) *tls.Config {
})
nCiphers := insecureRand.Intn(len(allCipherSuites))
tlsConfig.CipherSuites = allCipherSuites[:nCiphers]

if certs.TLSKeyLogger != nil {
tlsConfig.KeyLogWriter = certs.TLSKeyLogger
}
Expand Down

0 comments on commit 620bdd7

Please sign in to comment.