Documentation
¶
Index ¶
- Constants
- func CreateClientCertificate(clientName string) ([]byte, []byte, error)
- func GetClientTLSConfig(clientName string) (*tls.Config, error)
- func GetOrCreateCA() (*x509.Certificate, *rsa.PrivateKey, error)
- func GetOrCreateCertificates() (*tls.Certificate, error)
- func GetTLSConfig() (*tls.Config, error)
Constants ¶
View Source
const ( CertDir = "certs" CertFile = "server.crt" KeyFile = "server.key" CAFile = "ca.crt" CAKeyFile = "ca.key" CertValidity = 365 * 24 * time.Hour )
Variables ¶
This section is empty.
Functions ¶
func CreateClientCertificate ¶
func GetOrCreateCA ¶
func GetOrCreateCA() (*x509.Certificate, *rsa.PrivateKey, error)
func GetOrCreateCertificates ¶
func GetOrCreateCertificates() (*tls.Certificate, error)
func GetTLSConfig ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.