cert

package
v1.14.0-dev.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenTLSConfig

func GenTLSConfig(props map[string]interface{}, typ string) (*tls.Config, error)

func GenerateTLSForClient

func GenerateTLSForClient(
	Opts *TlsConfigurationOptions,
) (*tls.Config, error)

Types

type TlsConfigurationOptions

type TlsConfigurationOptions struct {
	SkipCertVerify       bool   `json:"insecureSkipVerify"`
	CertificationRaw     string `json:"certificationRaw"`
	PrivateKeyRaw        string `json:"privateKeyRaw"`
	RootCARaw            string `json:"rootCARaw"`
	CertFile             string `json:"certificationPath"`
	KeyFile              string `json:"privateKeyPath"`
	CaFile               string `json:"rootCaPath"`
	TLSMinVersion        string `json:"tlsMinVersion"`
	RenegotiationSupport string `json:"renegotiationSupport"`
	// contains filtered or unexported fields
}

func (*TlsConfigurationOptions) TlsConfigLog

func (opts *TlsConfigurationOptions) TlsConfigLog(typ string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL