Help us shape the future of Go! Take the 2026 Go Developer Survey

certdata

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const T_CERTIFICATE = infodata.TypeVersion("Certificate") // "Certificate/v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate interface {
	infodata.InfoData

	KeyPair() (tls.Certificate, error)

	Certificates() []*x509.Certificate
	PrivateKey() *rsa.PrivateKey

	CertData() []byte
	KeyData() []byte
}

Certificate ins the InfoData type to storing Certificates in an InfoDataList It implements the InfoData interface plus type specific access functions

func NewCertificate

func NewCertificate(key *rsa.PrivateKey, certs ...*x509.Certificate) (Certificate, error)

NewCertificate is a constructor for a Certificate Type using the semantical content

func NewCertificateByData

func NewCertificateByData(cert, key []byte) (Certificate, error)

NewCertificateByData is a constructor for a Certificate Type using pem representations

Jump to

Keyboard shortcuts

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