certificate

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DigestCert

func DigestCert(cert *x509.Certificate, hashFunc string) ([]byte, error)

DigestCert creates a hash of certificate.

func DigestFromFile

func DigestFromFile(pemCertPath, hashFunc string) ([]byte, error)

DigestFromFile creates a hash of the content of the passed file.

func DigestPemContent

func DigestPemContent(pemContent []byte, hashFunc string) ([]byte, error)

DigestPemContent creates a hash of the content of the PEM.

func GetCert

func GetCert(certPath string) (*x509.Certificate, error)

GetCert reads a PEM-encoded X.509 certificate from the specified file path. and returns the parsed certificate.

func GetCertFromBytes

func GetCertFromBytes(pemContent []byte) (*x509.Certificate, error)

GetCertFromBytes reads a PEM-encoded X.509 certificate and returns the parsed certificate.

Types

This section is empty.

Jump to

Keyboard shortcuts

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