Tweak TLS settings (ref #23)

This commit is contained in:
Jakob Borg 2014-01-09 09:28:08 +01:00
parent 17e78d6f7e
commit 211180108e
1 changed files with 7 additions and 5 deletions

12
main.go
View File

@ -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.