func (c *CertManager) GetTLSConfig() *tls.Config {
	return c.c.GetClientTLSConfig()
}
GetTLSConfig returns tls configuration for clients
package client
import (
	"crypto/tls"
	"fmt"
	"github.com/plgd-dev/hub/pkg/log"
	"github.com/plgd-dev/hub/pkg/security/certManager/general"
)
type Config struct {
	CAPool          string `yaml:"caPool" json:"caPool" description:"file path to the root certificates in PEM format"`
	KeyFile         string `yaml:"keyFile" json:"keyFile" description:"file name of private key in PEM format"`
	CertFile        string `yaml:"certFile" json:"certFile" description:"file name of certificate in PEM format"`
	UseSystemCAPool bool   `yaml:"useSystemCAPool" json:"useSystemCAPool" description:"use system certification pool"`
}
func (c Config) Validate() error {
	if c.CAPool == "" && !c.UseSystemCAPool {
		return fmt.Errorf("caPool('%v')", c.CAPool)
	}
	if c.CertFile == "" {
		return fmt.Errorf("certFile('%v')", c.CertFile)
	}
	if c.KeyFile == "" {
		return fmt.Errorf("keyFile('%v')", c.KeyFile)
	}
	return nil
}
func (c *Config) SetDefaults() {
}
type CertManager struct {
	c *general.CertManager
}