Set TLS1.2 as the minimum acceptable TLS version.

This commit is contained in:
Josh Rickmar 2013-11-21 16:41:15 -05:00
parent 21faab5e3e
commit 74d7178aa8

View file

@ -585,7 +585,8 @@ func BtcdConnect(certificates []byte, reply chan error) {
pool := x509.NewCertPool()
pool.AppendCertsFromPEM(certificates)
config.TlsConfig = &tls.Config{
RootCAs: pool,
RootCAs: pool,
MinVersion: tls.VersionTLS12,
}
// btcd requires basic authorization, so we use a custom config with