cert

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValid

func IsValid(c *x509.Certificate, t time.Time) bool

Types

type CertPemData

type CertPemData struct {
	Crt []byte // PEM encoded
	Key []byte // PEM encoded
}

func NewCertificateFromDER

func NewCertificateFromDER(der [][]byte, privateKey *rsa.PrivateKey) (certificate *CertPemData, err error)

func (*CertPemData) Certificate

func (c *CertPemData) Certificate() (*x509.Certificate, error)

Jump to

Keyboard shortcuts

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