assembler

package
v0.0.0-...-3c86fcf Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2015 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cert

type Cert struct {
	CertConfig CertData `yaml:"certificate"`

	PrivateKey   interface{}
	CertTemplate *x509.Certificate
	CertBytes    []byte
	Signers      []string
	// contains filtered or unexported fields
}

type CertData

type CertData struct {
	Id        string   `yaml:"id"`
	CA        bool     `yaml:"ca"`
	Parent    string   `yaml:"parent"`
	KeyType   string   `yaml:"keytype"`
	KeyLength int      `yaml:"keylength"`
	HashAlg   string   `yaml:"hashalg"`
	AltNames  []string `yaml:"altnames"`
	DateFrom  string   `yaml:"validfrom"`
	DateTo    string   `yaml:"validto"`
	Pkix      PkixData `yaml:"pkix"`
	Usage     []string `yaml:"usage"`
}

func (*CertData) ValidFrom

func (cd *CertData) ValidFrom() time.Time

func (*CertData) ValidTo

func (cd *CertData) ValidTo() time.Time

type Certs

type Certs struct {
	Certificates []*Cert `yaml:"certificates"`
	// contains filtered or unexported fields
}

func Generate

func Generate(filename string) Certs

func (Certs) Output

func (c Certs) Output()

type PkixData

type PkixData struct {
	CommonName       string `yaml:"commonname"`
	Country          string `yaml:"country"`
	Organization     string `yaml:"organization"`
	OrganizationUnit string `yaml:"organizationunit"`
}

Jump to

Keyboard shortcuts

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