certificates

package
v0.0.0-...-9516177 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

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

Certificate represents a certificate

func NewCertificateAuthority

func NewCertificateAuthority(authorityName string) (*Certificate, error)

NewCertificateAuthority creates a new certificate authority

func NewCertificateFromv1alpha1

func NewCertificateFromv1alpha1(certificate *commonv1alpha1.Certificate) *Certificate

NewCertificateFromv1alpha1 returns a certificate from a versioned certificate

func (*Certificate) CreateCertificate

func (certificate *Certificate) CreateCertificate(commonName string, organization []string, extraSANs []string) (string, string, error)

CreateCertificate generates a new certificate and key signed with the current CA

func (*Certificate) Export

func (certificate *Certificate) Export() *commonv1alpha1.Certificate

Export exports the certificate to a versioned certificate

Jump to

Keyboard shortcuts

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