Documentation
¶
Index ¶
- func IsExpired(expiresAt time.Time, now time.Time, expirationBuffer time.Duration) bool
- func PrivateKeyFromPemFile(path string) (*rsa.PrivateKey, error)
- func PublicKeyFromPemFile(path string) (*rsa.PublicKey, error)
- func PublicKeyFromPemString(pubstr string) (*rsa.PublicKey, error)
- func PublicKeyLineFromPemFile(path string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsExpired ¶
IsExpired determines if a given expiresAt time has expired when considering the current time and an additional expiration buffer.
The expiration buffer is a duration subtracted from the expiresAt time to determine the effective expiration time. This is useful for avoiding expiration race conditions due to clock skew.
Returns true if the expiresAt time has expired, false otherwise.
func PrivateKeyFromPemFile ¶
func PrivateKeyFromPemFile(path string) (*rsa.PrivateKey, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.