Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JWTSVIDExpired ¶
JWTSVIDExpired returns true if the given SVID is expired.
func JWTSVIDExpiresSoon ¶
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.
Click to show internal directories.
Click to hide internal directories.