secure

package
v0.0.0-...-fa1d5a5 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2016 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MasterPrivateKey = "/etc/golem/pki/master/master_key"
	MasterPubCert    = "/etc/golem/pki/master/master_pub"

	MasterAcceptDir  = "/etc/golem/pki/master/peons"
	MasterPendingDir = "/etc/golem/pki/master/pending"

	PeonPrivateKey = "/etc/golem/pki/peon/peon_key"
	PeonPubCert    = "/etc/golem/pki/peon/peon_pub"
)

Variables

This section is empty.

Functions

func GenerateMemCert

func GenerateMemCert() ([]byte, []byte, error)

GenerateMemCert creates a certificate and key pair, returning them as byte arrays in memory.

func SetupKeys

func SetupKeys(mode string) error

Functions in this package help with generating and loading keys for use by the overlord, master, and peon. They are used to secure communication by encrypting the data that's sent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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