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.
Click to show internal directories.
Click to hide internal directories.