Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTLSConfig ¶
Types ¶
type CAClient ¶
type CAClient struct {
ServerName string
CaPaths []string
CaCerts []string
CertFile string
KeyFile string
CertBytes []byte
KeyBytes []byte
Logger log.LoggerInterface
}
func (*CAClient) GetCredentialsByCA ¶
func (c *CAClient) GetCredentialsByCA() (*credentials.TransportCredentials, error)
type CAServer ¶
type CAServer struct {
CaPaths []string
CaCerts []string
CertFile string
KeyFile string
Logger log.LoggerInterface
}
func (*CAServer) GetCredentialsByCA ¶
func (s *CAServer) GetCredentialsByCA(checkClientAuth bool) (*credentials.TransportCredentials, error)
Source Files
¶
- ca.go
- ca_client.go
- ca_server.go
- tls.go
Click to show internal directories.
Click to hide internal directories.