func ServerDefault() *tls.Config {
	return &tls.Config{
		MinVersion:               tls.VersionTLS10,
		PreferServerCipherSuites: true,
		CipherSuites:             DefaultServerAcceptedCiphers,
	}
}
ServerDefault returns a secure-enough TLS configuration for the server TLS configuration.
package tlsconfig
import (
	"crypto/tls"
	"crypto/x509"
	"fmt"
	"io/ioutil"
	"os"
	"github.com/Sirupsen/logrus"
)
type Options struct {
	CAFile string
	CertFile string
	KeyFile  string
	InsecureSkipVerify bool
	ClientAuth tls.ClientAuthType
}
var acceptedCBCCiphers = []uint16{
	tls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,
	tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,
	tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,
	tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,
	tls.TLS_RSA_WITH_AES_256_CBC_SHA,
	tls.TLS_RSA_WITH_AES_128_CBC_SHA,
}
var DefaultServerAcceptedCiphers = append(clientCipherSuites, acceptedCBCCiphers...)