mirror of
https://github.com/minio/minio.git
synced 2025-03-30 17:23:42 -04:00
Remove unnecessary tlsHelpers, SSL works with domain certificate
This commit is contained in:
parent
666ed34059
commit
a947767339
@ -84,7 +84,6 @@ func start(ctrlChannel <-chan string, errorChannel chan<- error,
|
|||||||
for _, host := range hosts {
|
for _, host := range hosts {
|
||||||
fmt.Printf("Starting minio server on: https://%s:%s\n", host, port)
|
fmt.Printf("Starting minio server on: https://%s:%s\n", host, port)
|
||||||
}
|
}
|
||||||
httpServer.TLSConfig = getDefaultTLSConfig()
|
|
||||||
err = httpServer.ListenAndServeTLS(config.CertFile, config.KeyFile)
|
err = httpServer.ListenAndServeTLS(config.CertFile, config.KeyFile)
|
||||||
}
|
}
|
||||||
errorChannel <- err
|
errorChannel <- err
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
package httpserver
|
|
||||||
|
|
||||||
import "crypto/tls"
|
|
||||||
|
|
||||||
func getDefaultTLSConfig() *tls.Config {
|
|
||||||
config := tls.Config{}
|
|
||||||
|
|
||||||
//Use only modern ciphers
|
|
||||||
config.CipherSuites = []uint16{
|
|
||||||
tls.TLS_RSA_WITH_AES_128_CBC_SHA,
|
|
||||||
tls.TLS_RSA_WITH_AES_256_CBC_SHA,
|
|
||||||
tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,
|
|
||||||
tls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,
|
|
||||||
tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,
|
|
||||||
tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,
|
|
||||||
tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
|
|
||||||
tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
|
|
||||||
}
|
|
||||||
|
|
||||||
//Don't allow session resumption
|
|
||||||
config.SessionTicketsDisabled = true
|
|
||||||
config.ClientAuth = tls.RequireAnyClientCert
|
|
||||||
return &config
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user