cert

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchCertificates

func FetchCertificates(targetURL string) ([]*x509.Certificate, error)

FetchCertificates fetch the certificate chain from te target URL

func IsToExport

func IsToExport(certIndexes []int, i int) bool

IsToExport check whether the current index is to be exported

func Print

func Print(targetURL string) error

Print all certificates for the given target URL

func PrintAdd

func PrintAdd(i int, cert *x509.Certificate)

PrintAdd print an add statement

func PrintSkip

func PrintSkip(i int, cert *x509.Certificate)

PrintSkip print an skip statement

func PrintSkipDetailed

func PrintSkipDetailed(i int, cert *x509.Certificate, detail string)

PrintSkipDetailed print an skip statement

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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