tlsbundle

package
v0.0.449 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TlsBundle

type TlsBundle struct {
	PrivateKeyPem  string   `json:"private_key_pem,omitempty"`
	CertificatePem string   `json:"certificate_pem,omitempty"`
	CaChainPem     []string `json:"ca_chain_pem,omitempty"`
}

func ParseTlsBundle

func ParseTlsBundle(data []byte) (*TlsBundle, error)

func ParseTlsBundleFromEnv

func ParseTlsBundleFromEnv(key string) (*TlsBundle, error)

func (TlsBundle) CAPool

func (tb TlsBundle) CAPool() *x509.CertPool

func (TlsBundle) Certificate

func (tb TlsBundle) Certificate() (tls.Certificate, error)

func (TlsBundle) ClientConfig

func (tb TlsBundle) ClientConfig() (*tls.Config, error)

func (TlsBundle) Encode

func (tb TlsBundle) Encode() ([]byte, error)

func (TlsBundle) ServerConfig

func (tb TlsBundle) ServerConfig() (*tls.Config, error)

Jump to

Keyboard shortcuts

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