cert

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 7 Imported by: 9

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

func SerialToString(certSerialNumber *big.Int) string

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.

Jump to

Keyboard shortcuts

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