policy

package
v0.0.0-...-d1cd67c Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2018 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Preparer

type Preparer interface {
	// This takes a template x509 Certificate, and prepares it for signing
	// according to CA policy.
	//
	// Bare minimum things this ought to do:
	//
	//  - Set the Serial Number to something secure
	//  - Set the NotBefore and NotAfter
	//  - Set any Key Usage bits
	//  - Set IsCA and friends
	//
	Prepare(io.Reader, *x509.Certificate) error
}

type Translator

type Translator interface {
	// This defines the process by which a CSR is turned into a Certificate
	// template.
	CSRToCertificate(*x509.CertificateRequest) (*x509.Certificate, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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