mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +02:00
cipher suites TODO
This commit is contained in:
parent
8a351b8e10
commit
7b1bab5c0b
2 changed files with 597 additions and 579 deletions
|
@ -120,7 +120,25 @@ func Serve(ready chan struct{}) {
|
|||
|
||||
log.Info("Starting SSL server on " + port + " with " + certFile + " " + keyFile)
|
||||
|
||||
server := &http.Server{Addr: ":" + port, Handler: n}
|
||||
// myTLSConfig := &tls.Config{
|
||||
// CipherSuites: []uint16{
|
||||
// tls.TLS_RSA_WITH_3DES_EDE_CBC_SHA,
|
||||
// tls.TLS_RSA_WITH_AES_128_CBC_SHA,
|
||||
// tls.TLS_RSA_WITH_AES_256_CBC_SHA,
|
||||
// // tls.TLS_RSA_WITH_AES_128_CBC_SHA256,
|
||||
// // tls.TLS_RSA_WITH_AES_256_CBC_SHA256,
|
||||
// tls.TLS_RSA_WITH_AES_128_GCM_SHA256,
|
||||
// tls.TLS_RSA_WITH_AES_256_GCM_SHA384,
|
||||
// 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_CBC_SHA256,
|
||||
// // tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,
|
||||
// tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
|
||||
// tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384}}
|
||||
// // tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256}}
|
||||
// myTLSConfig.PreferServerCipherSuites = true
|
||||
|
||||
server := &http.Server{Addr: ":" + port, Handler: n /*, TLSConfig: myTLSConfig*/}
|
||||
server.SetKeepAlivesEnabled(true)
|
||||
if err := server.ListenAndServeTLS(certFile, keyFile); err != nil {
|
||||
log.Error("ListenAndServeTLS on "+port, err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue