Documentation ¶
Index ¶
- func GetClientTLSCredentials(serverName string, certFile string) (credentials.TransportCredentials, error)
- func GetClientTLSCredentialsByCA(serverName string, caFile string, certFile string, keyFile string) (credentials.TransportCredentials, error)
- func GetServerTLSCredentials(certFile string, keyFile string) (credentials.TransportCredentials, error)
- func GetServerTLSCredentialsByCA(caFile string, certFile string, keyFile string) (credentials.TransportCredentials, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientTLSCredentials ¶
func GetClientTLSCredentials(serverName string, certFile string) (credentials.TransportCredentials, error)
GetClientTLSCredentials TLS encryption
func GetClientTLSCredentialsByCA ¶
func GetClientTLSCredentialsByCA(serverName string, caFile string, certFile string, keyFile string) (credentials.TransportCredentials, error)
GetClientTLSCredentialsByCA two-way authentication via CA-issued root certificate
func GetServerTLSCredentials ¶
func GetServerTLSCredentials(certFile string, keyFile string) (credentials.TransportCredentials, error)
GetServerTLSCredentials server-side authentication
func GetServerTLSCredentialsByCA ¶
func GetServerTLSCredentialsByCA(caFile string, certFile string, keyFile string) (credentials.TransportCredentials, error)
GetServerTLSCredentialsByCA two-way authentication via CA-issued root certificate
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.