certs

package
v0.0.0-...-add28f9 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAnchorCert

func CreateAnchorCert(template *x509.Certificate, useElliptic bool, certOutput io.Writer, caCertOutput io.Writer) error

CreateAnchorCert creates the trust anchor certificate and the CA certificate. Both are written out PEM encoded.

func CreateCert

func CreateCert(template *x509.Certificate, useElliptic bool, anchorCert []byte, certOutput io.Writer) error

CreateCert creates the certificate signed by the giver trust anchor certificate. It is written PEM encoded.

func CreateCertTemplate

func CreateCertTemplate(role ssntp.Role, organization string, email string, hosts []string, mgmtIPs []string) (*x509.Certificate, error)

CreateCertTemplate provides the certificate template from which trust anchor or derivative certificates can be derived.

Types

This section is empty.

Jump to

Keyboard shortcuts

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