cert

package
v0.0.0-...-ba426b4 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyExt  = ".key"
	CertExt = ".crt"
)

Variables

This section is empty.

Functions

func LoadFromDisk

func LoadFromDisk(pkiPath, name string) (*x509.Certificate, crypto.Signer, error)

func NewKey

func NewKey(algorithm string, bits int) (crypto.Signer, error)

NewKey return a new private key

func WriteToDisk

func WriteToDisk(pkiPath, name string, certs []*x509.Certificate, key crypto.Signer) error

Types

type Config

type Config struct {
	certutil.Config

	Name string
	Dir  string

	Bits int
}

Jump to

Keyboard shortcuts

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