Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultCertificateDuration = 825 * 24 * time.Hour
Variables ¶
This section is empty.
Functions ¶
func ParseClientAuthType ¶
func ParseClientAuthType(value string) (tls.ClientAuthType, error)
ParseClientAuthType parses a client auth type string and returns the corresponding tls.ClientAuthType. Accepts: RequireAndVerifyClientCert (default), RequireAnyClientCert, VerifyClientCertIfGiven, NoClientCert.
func ParseTLSVersion ¶
ParseTLSVersion parses a TLS version string and returns the corresponding tls version constant. Accepts: "1.2", "1.3", or empty string (defaults to "1.2").
func SetClientAuth ¶
func SetClientAuth(x *x509.Certificate) error
func SetServerAuth ¶
func SetServerAuth(x *x509.Certificate) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.