admissionregistration

package
v1.9.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCert

func GenerateCert(ca []byte,
	commonName string,
	extraSANs []string,
	CAPrivateKey *rsa.PrivateKey,
) ([]byte, []byte, error)

func PemEncodeCertificate

func PemEncodeCertificate(certificate []byte) ([]byte, error)

Types

type CA added in v0.4.0

type CA struct {
	CaCert       []byte
	CaPrivateKey *rsa.PrivateKey
}

func GenerateCA

func GenerateCA() (*CA, error)

type KeyPair

type KeyPair struct {
	PublicKey  string
	PrivateKey string
	// contains filtered or unexported fields
}

KeyPair represents a public/private key pair

func (*KeyPair) Key

func (keyPair *KeyPair) Key() *rsa.PrivateKey

Key returns the RSA private key for this private key pair

Jump to

Keyboard shortcuts

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