certs

package
v0.0.0-...-90a9341 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractAndVerifyCertificate

func ExtractAndVerifyCertificate(certificate []byte) (*x509.Certificate, *ecdsa.PrivateKey, error)

Types

type CertificatePrivateKeyPair

type CertificatePrivateKeyPair struct {
	CertificatePEM string
	PrivateKeyPEM  string
	Certificate    []byte // DER
}

func NewClientCertificate

func NewClientCertificate(certificate []byte) (*CertificatePrivateKeyPair, error)

func NewClusterCertificate

func NewClusterCertificate() (*CertificatePrivateKeyPair, error)

type NodeCertificatePrivateKeyPair

type NodeCertificatePrivateKeyPair struct {
	CertificateRoot *x509.Certificate
	Certificate     []byte // DER
	PrivateKey      *ecdsa.PrivateKey
}

func GenerateNodeCertificatePrivateKeyPair

func GenerateNodeCertificatePrivateKeyPair(certificate []byte) (*NodeCertificatePrivateKeyPair, error)

Jump to

Keyboard shortcuts

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