rotationutil

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JWTSVIDExpired

func JWTSVIDExpired(svid *client.JWTSVID, now time.Time) bool

JWTSVIDExpired returns true if the given SVID is expired.

func JWTSVIDExpiresSoon

func JWTSVIDExpiresSoon(svid *client.JWTSVID, now time.Time) bool

JWTSVIDExpiresSoon determines if the given JWT SVID should be rotated based on presented current time, the JWT's expiration. Also returns true if the JWT is already expired.

func ShouldRotateX509

func ShouldRotateX509(now time.Time, cert *x509.Certificate) bool

ShouldRotateX509 determines if a given SVID should be rotated, based on presented current time, and the certificate's expiration.

func X509Expired

func X509Expired(now time.Time, cert *x509.Certificate) bool

X509Expired returns true if the given X509 cert has expired

Types

This section is empty.

Jump to

Keyboard shortcuts

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