certificates

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultValidityYears is the duration for regular certificates, SSL etc. 2 years.
	ServerValidityYears = 2

	// CaValidityYears is the duration for CA certificates. 30 years.
	CaValidityYears = 30

	// ClockSkewDuration is the allowed clock skews.
	ClockSkewDuration = time.Minute * 10

	// KeyRetryCount is the number of retries for certificate generation.
	KeyRetryCount    = 3
	KeyRetryInterval = time.Microsecond * 5
	KeyRetryTimeout  = time.Second * 10
)

Variables

This section is empty.

Functions

func GetPEMCertificateString

func GetPEMCertificateString(expirationTime time.Time) (string, error)

func IsPEMCertificateExpired

func IsPEMCertificateExpired(ctx context.Context, encodedCert, certName string, expirationTime time.Time) (bool, error)

IsPEMCertificateExpired check if a pem certificate expired

Types

type PemTrasformer

type PemTrasformer interface {
	// contains filtered or unexported methods
}

Directories

Path Synopsis
mock_cert_creator
Package mock_cert_creator is a generated GoMock package.
Package mock_cert_creator is a generated GoMock package.

Jump to

Keyboard shortcuts

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