Documentation
¶
Index ¶
- func DigestCert(cert *x509.Certificate, hashFunc string) ([]byte, error)
- func DigestFromFile(pemCertPath, hashFunc string) ([]byte, error)
- func DigestPemContent(pemContent []byte, hashFunc string) ([]byte, error)
- func GetCert(certPath string) (*x509.Certificate, error)
- func GetCertFromBytes(pemContent []byte) (*x509.Certificate, error)
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 ¶
DigestFromFile creates a hash of the content of the passed file.
func DigestPemContent ¶
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.
Click to show internal directories.
Click to hide internal directories.