cert

package
v1.11.57 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromFile

func FromFile(filename string) (*x509.Certificate, error)

FromFile to read and parse x509 certificate from file

func FromPEMBytes

func FromPEMBytes(pemBytes []byte) (*x509.Certificate, error)

FromPEMBytes to get parse x509 certificate from bytes

func IsExpiryAfterThreshold

func IsExpiryAfterThreshold(certFile string, thresholdDays float64) (bool, error)

IsExpiryAfterThreshold to check if the cert expiry is after the number of thresholdDays

Types

This section is empty.

Jump to

Keyboard shortcuts

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