diff options
author | terminaldweller <thabogre@gmail.com> | 2021-09-11 19:20:36 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-09-11 19:20:36 +0000 |
commit | 23a756f9b777eb5e1fe8f9b70928a5c42796fe36 (patch) | |
tree | 2380ee3532f0c9700d707cb0986aab6fd7477c02 /hived.go | |
parent | https support-WIP (diff) | |
download | hived-23a756f9b777eb5e1fe8f9b70928a5c42796fe36.tar.gz hived-23a756f9b777eb5e1fe8f9b70928a5c42796fe36.zip |
https working now
Diffstat (limited to '')
-rw-r--r-- | hived.go | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -603,15 +603,15 @@ func robotsHandler(w http.ResponseWriter, r *http.Request) { func startServer(gracefulWait time.Duration) { r := mux.NewRouter() cfg := &tls.Config{ - MinVersion: tls.VersionTLS13, - CurvePreferences: []tls.CurveID{tls.CurveP521, tls.CurveP384, tls.CurveP256}, - PreferServerCipherSuites: true, - CipherSuites: []uint16{ - tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, - tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, - tls.TLS_RSA_WITH_AES_256_GCM_SHA384, - tls.TLS_RSA_WITH_AES_256_CBC_SHA, - }, + MinVersion: tls.VersionTLS13, + // CurvePreferences: []tls.CurveID{tls.CurveP521, tls.CurveP384, tls.CurveP256}, + // PreferServerCipherSuites: true, + // CipherSuites: []uint16{ + // tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, + // tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, + // tls.TLS_RSA_WITH_AES_256_GCM_SHA384, + // tls.TLS_RSA_WITH_AES_256_CBC_SHA, + // }, } srv := &http.Server{ Addr: "0.0.0.0:" + *flagPort, @@ -628,7 +628,7 @@ func startServer(gracefulWait time.Duration) { r.HandleFunc("/robots.txt", robotsHandler) go func() { - if err := srv.ListenAndServeTLS("/certs/fullchain.pem", "/certs/privkey.pem"); err != nil { + if err := srv.ListenAndServeTLS("/certs/fullchain1.pem", "/certs/privkey1.pem"); err != nil { log.Fatal().Err(err) } }() |