certificate

package
v2.11.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKongSystemSelfSignedCerts

func GetKongSystemSelfSignedCerts() (cert []byte, key []byte)

GetKongSystemSelfSignedCerts returns the self-signed certificate and key with CN=*.<controllerNamespace>.svc and subjectAltName=DNS:*.<controllerNamespace>.svc.

func MustGenerateSelfSignedCert

func MustGenerateSelfSignedCert(decorators ...SelfSignedCeritificateOptionsDecorator) tls.Certificate

MustGenerateSelfSignedCert generates a tls.Certificate struct to be used in TLS client/listener configurations.

func MustGenerateSelfSignedCertPEMFormat

func MustGenerateSelfSignedCertPEMFormat(decorators ...SelfSignedCeritificateOptionsDecorator) (cert []byte, key []byte)

MustGenerateSelfSignedCertPEMFormat generates self-signed certificate and returns certificate and key in PEM format.

Types

type SelfSignedCeritificateOptions

type SelfSignedCeritificateOptions struct {
	CommonName string
	DNSNames   []string
}

Jump to

Keyboard shortcuts

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