util

package
v0.0.0-...-4b288b9 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OutputKeyCertToDir

func OutputKeyCertToDir(dir string, privateKey, certChain, rootCert []byte) error

OutputKeyCertToDir output the key and certificate to the given directory. If directory string is empty, return nil.

func ParseCertAndGetExpiryTimestamp

func ParseCertAndGetExpiryTimestamp(certByte []byte) (time.Time, error)

ParseCertAndGetExpiryTimestamp parses the first certificate in certByte and returns cert expire time, or return error if fails to parse certificate.

Types

This section is empty.

Jump to

Keyboard shortcuts

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