cert

package
v0.0.48 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package cert provides various utility functions regarding handling cert-manager for the sf-operator

Index

Constants

View Source
const (
	LocalCACertSecretName = "ca-cert"
)

Variables

View Source
var EonDuration, _ = time.ParseDuration("262800h") // 30 years

Functions

func IsCertificateReady

func IsCertificateReady(cert *certv1.Certificate) bool

func MkBaseCertificate

func MkBaseCertificate(name string, ns string, issuerName string,
	dnsNames []string, secretName string, isCA bool, duration time.Duration,
	usages []certv1.KeyUsage, commonName *string,
	privateKey *certv1.CertificatePrivateKey) certv1.Certificate

func MkCAIssuer

func MkCAIssuer(name string, ns string) certv1.Issuer

func MkCertificate

func MkCertificate(name string, ns string, issuerName string,
	dnsNames []string, secretName string, privateKey *certv1.CertificatePrivateKey, duration time.Duration) certv1.Certificate

func MkLetsEncryptIssuer

func MkLetsEncryptIssuer(name string, ns string, server string) certv1.Issuer

func MkSelfSignedIssuer

func MkSelfSignedIssuer(name string, ns string) certv1.Issuer

Types

This section is empty.

Jump to

Keyboard shortcuts

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