Documentation ¶
Index ¶
- func CreateClientTLSConfig(sslCA, sslKey, sslCert string) (tlsConfig *tls.Config, err error)
- func CreateClusterTLSConfig(sslCA, sslKey, sslCert string) (tlsConfig *tls.Config, err error)
- func CreateServerTLSConfig(logger *zap.Logger, ca, key, cert string, rsaKeySize int, workdir string) (tlsConfig *tls.Config, err error)
- func CreateTLSConfigForTest() (serverTLSConf *tls.Config, clientTLSConf *tls.Config, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClientTLSConfig ¶
CreateClientTLSConfig creates a tlsConfig that is used to connect to the backend server.
func CreateClusterTLSConfig ¶
CreateClusterTLSConfig generates tls's config based on security section of the config. It's used to connect to PD.
func CreateServerTLSConfig ¶
func CreateServerTLSConfig(logger *zap.Logger, ca, key, cert string, rsaKeySize int, workdir string) (tlsConfig *tls.Config, err error)
CreateServerTLSConfig creates a tlsConfig that is used to connect to the client.
func CreateTLSConfigForTest ¶
CreateTLSConfigForTest is from https://gist.github.com/shaneutt/5e1995295cff6721c89a71d13a71c251.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.