certificates

package
v0.0.0-...-fc75a81 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeCertificateAsPEM

func EncodeCertificateAsPEM(cert *x509.Certificate) []byte

EncodeCertificateAsPEM returns the PEM encoding of the given certificate

func LoadCertificatesFromFile

func LoadCertificatesFromFile(certificateFile *paths.Path) ([]*x509.Certificate, error)

LoadCertificatesFromFile read certificates from the given file. PEM and CER formats are supported.

func ScrapeRootCertificatesFromURL

func ScrapeRootCertificatesFromURL(URL string) ([]*x509.Certificate, error)

ScrapeRootCertificatesFromURL downloads from a webserver the root certificate required to connect to that server from the TLS handshake response.

Types

This section is empty.

Jump to

Keyboard shortcuts

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