From 211180108edff186b9df9a31553ec36a6998ab8b Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Thu, 9 Jan 2014 09:28:08 +0100 Subject: [PATCH] Tweak TLS settings (ref #23) --- main.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 1b42c15e..ff7e4bb4 100644 --- a/main.go +++ b/main.go @@ -114,11 +114,13 @@ func main() { // connections. cfg := &tls.Config{ - ClientAuth: tls.RequestClientCert, - ServerName: "syncthing", - NextProtos: []string{"bep/1.0"}, - InsecureSkipVerify: true, - Certificates: []tls.Certificate{cert}, + Certificates: []tls.Certificate{cert}, + NextProtos: []string{"bep/1.0"}, + ServerName: myID, + ClientAuth: tls.RequestClientCert, + SessionTicketsDisabled: true, + InsecureSkipVerify: true, + MinVersion: tls.VersionTLS12, } // Load the configuration file, if it exists.