tls

package
v0.0.0-...-5006184 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsKeyfile

func AsKeyfile(cert, priv string) string

func CreateTLSCACertificate

func CreateTLSCACertificate(commonName string) (string, string, error)

CreateTLSCACertificate creates a CA certificate

func CreateTLSServerCertificate

func CreateTLSServerCertificate(caCert, caKey string, names KeyfileInput) (string, string, error)

CreateTLSServerCertificate creates Sever Cert in PEM Format

func CreateTLSServerKeyfile

func CreateTLSServerKeyfile(caCert, caKey string, names KeyfileInput) (string, error)

CreateTLSServerKeyfile creates Sever Cert in Keyfile Format

Types

type KeyfileInput

type KeyfileInput struct {
	TTL      *time.Duration
	AltNames []string
	Email    []string
}

func GetAltNames

func GetAltNames(tls api.TLSSpec) (KeyfileInput, error)

func GetServerAltNames

func GetServerAltNames(deployment meta.Object, spec api.DeploymentSpec, tls api.TLSSpec, service *core.Service, group api.ServerGroup, member api.MemberStatus) (KeyfileInput, error)

func GetSyncAltNames

func GetSyncAltNames(deployment meta.Object, spec api.DeploymentSpec, tls api.TLSSpec, group api.ServerGroup, member api.MemberStatus) (KeyfileInput, error)

func (KeyfileInput) Append

Jump to

Keyboard shortcuts

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