keys

package
v0.0.0-...-88edc58 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keys

type Keys struct {
	CAPrivateKey *bytes.Buffer
	CAPem        *bytes.Buffer

	CAPrivateKeyPath string
	CAPemPath        string

	ServerPrivateKey *bytes.Buffer
	ServerCertPem    *bytes.Buffer

	ServerPrivateKeyPath string
	ServerCertPemPath    string

	ClientPrivateKey *bytes.Buffer
	ClientCertPem    *bytes.Buffer

	ClientPrivateKeyPath string
	ClientCertPemPath    string
}

func NewKeys

func NewKeys(directory string) *Keys

func (*Keys) GenerateHttpClient

func (keys *Keys) GenerateHttpClient() (*http.Client, error)

func (*Keys) GenerateIfNoKeysFound

func (keys *Keys) GenerateIfNoKeysFound() (bool, error)

func (*Keys) GenerateKeys

func (keys *Keys) GenerateKeys() error

func (*Keys) GeneratePemBundle

func (keys *Keys) GeneratePemBundle() string

func (*Keys) SaveToDirectory

func (keys *Keys) SaveToDirectory() error

Jump to

Keyboard shortcuts

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