func LoadCACertFile(cert string) (*x509.CertPool, error) {
	// validate caCert, and setup certpool
	ca, err := ioutil.ReadFile(cert)
	if err != nil {
		return nil, fmt.Errorf("could not load CA Certificate: %s ", err.Error())
	}

	certPool := x509.NewCertPool()
	if err := certPool.AppendCertsFromPEM(ca); !err {
		return nil, errors.New("could not append CA Certificate to CertPool")
	}

	return certPool, nil
}
func LoadCACertFile(cert string) (*x509.CertPool, error) {
	// validate caCert, and setup certpool
	ca, err := ioutil.ReadFile(cert)
	if err != nil {
		return nil, fmt.Errorf("could not load CA Certificate: %s ", err.Error())
	}

	certPool := x509.NewCertPool()
	if err := certPool.AppendCertsFromPEM(ca); !err {
		return nil, errors.New("could not append CA Certificate to CertPool")
	}

	return certPool, nil
}
// LoadCACertFile reads in a CA cert file that may contain multiple certs
// and gives  you back a proper x509.CertPool for your fun and proffit