certificates

package
v1.4.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCertificateExpiration

func ValidateCertificateExpiration(certData []byte, renewalThreshold time.Duration, now time.Time, log logd.Logger) (bool, error)

Types

type Certificate added in v1.4.0

type Certificate struct {
	Cert       *x509.Certificate
	Pk         *rsa.PrivateKey
	SignedCert []byte
	SignedPk   []byte
	// contains filtered or unexported fields
}

func New added in v1.4.0

func New(timeProvider *timeprovider.Provider) (*Certificate, error)

func (*Certificate) SelfSign added in v1.4.0

func (c *Certificate) SelfSign() error

func (*Certificate) ToPEM added in v1.4.0

func (c *Certificate) ToPEM() (pemCert []byte, pemPk []byte, err error)

Jump to

Keyboard shortcuts

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