Documentation ¶
Overview ¶
Package cert implements some common tools for certification related functionalities
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadCert ¶
func LoadCert(certFile string) (*x509.Certificate, error)
LoadCert loads, parses and returns certificate from a given file
func LoadCertAndPrivKey ¶
func LoadCertAndPrivKey(certFile, keyFile string) (cert *x509.Certificate, privKey interface{}, err error)
load certificate and private key given certificate file and key file
func SerialToString ¶
SerialToString converts big.Int to hexadecimal string with uppercace letters (A,B,C,D,E,F), without base prefix ("0x") and without leading zeros
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.