pkiutil

package
v0.0.0-...-b2d20b0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSRParams

type CSRParams struct {
	Subject  pkix.Name
	AltNames []string
	ValidFor time.Duration
	Profile  SigningProfile
}

type CertCombo

type CertCombo struct {
	Cert *x509.Certificate
	Key  *rsa.PrivateKey
}

func InitCA

func InitCA(params CSRParams) *CertCombo

func MakeCert

func MakeCert(params CSRParams, caCombo *CertCombo) *CertCombo

func (*CertCombo) ExtractCertData

func (certCombo *CertCombo) ExtractCertData() []byte

func (*CertCombo) ExtractKeyData

func (certCombo *CertCombo) ExtractKeyData() []byte

func (*CertCombo) SetCertPEMData

func (certCombo *CertCombo) SetCertPEMData(certPEM []byte) error

func (*CertCombo) SetKeyPEMData

func (certCombo *CertCombo) SetKeyPEMData(keyPEM []byte) error

type SigningProfile

type SigningProfile uint8
const (
	None SigningProfile = iota
	Server
	Peer
	Client
)

Jump to

Keyboard shortcuts

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