add createStore() funcs and skip consul TLS test

This commit is contained in:
Martin 2016-07-13 17:18:55 +02:00
parent 38cc36980f
commit b153e90ec5
11 changed files with 121 additions and 105 deletions

View file

@ -110,7 +110,6 @@ type ClientTLS struct {
func (clientTLS *ClientTLS) CreateTLSConfig() (*tls.Config, error) {
var err error
caPool := x509.NewCertPool()
// TODO : error if CA=="" || Cert=="" || Key==""
if clientTLS.CA != "" {
var ca []byte
if _, errCA := os.Stat(clientTLS.CA); errCA == nil {