security

package
v0.0.0-...-56cd1df Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2016 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeTemplate

func MakeTemplate(subject *pkix.Name, publickey *crypto.PublicKey, isCA bool) (*x509.Certificate, error)

MakeTemplate constructs a certificate authority template with public key.

func PkixField

func PkixField(r *bufio.Reader, label string) []string

PkixField constructs a DN field from a bufio reader.

func PkixName

func PkixName(stream io.Reader) (name *pkix.Name)

PkixName creates a DN record populated from an io.Reader

func SignCaCertificate

func SignCaCertificate(template *x509.Certificate, publickey crypto.PublicKey,
	privatekey crypto.PrivateKey) ([]byte, error)

SignCaCertificate self-signs the certificate authority certificate.

func StoreCertificate

func StoreCertificate(cert []byte, filepath string, perm os.FileMode) error

StoreCertificate stores a certificate to the file system.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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