func NewTLSConfigClient(c Certificate) (*tls.Config, error) {
	cfg, err := tlsconfig.Client(tlsconfig.Options{CAFile: c.CA, KeyFile: c.Key, CertFile: c.Cert, InsecureSkipVerify: c.InsecureSkipVerify})
	return cfg, errors.Trace(err)
}
NewTLSConfigClient loads tls config for client
package utils
import (
	"crypto/tls"
	"github.com/docker/go-connections/tlsconfig"
	"github.com/baetyl/baetyl-go/v2/errors"
)
type Certificate struct {
	CA                 string `yaml:"ca" json:"ca"`
	Key                string `yaml:"key" json:"key"`
	Cert               string `yaml:"cert" json:"cert"`
	Name               string `yaml:"name" json:"name"`
	InsecureSkipVerify bool   `yaml:"insecureSkipVerify" json:"insecureSkipVerify"`  
	tls.ClientAuthType `yaml:"clientAuthType" json:"clientAuthType"`
}
func NewTLSConfigServer(c Certificate) (*tls.Config, error) {
	cfg, err := tlsconfig.Server(tlsconfig.Options{CAFile: c.CA, KeyFile: c.Key, CertFile: c.Cert, ClientAuth: c.ClientAuthType})
	return cfg, errors.Trace(err)
}