keys

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "keys",
	Short: "Generate keys for the SCION control plane PKI.",
	Long: `
'keys' can be used to generate all the necessary keys used in the SCION control plane PKI as well
as the AS master key.

Selector:
	*-*
		All ISDs and ASes under the root directory.
	X-*
		All ASes in ISD X.
	X-Y
		A specific AS X-Y, e.g. AS 1-ff00:0:300
`,
}

Functions

func PrivateDir

func PrivateDir(out string, ia addr.IA) string

PrivateDir returns the directory where the private keys are written to.

func PublicDir

func PublicDir(out string, ia addr.IA) string

PublicDir returns the directory where the public keys are written to.

func PublicKey

func PublicKey(priv keyconf.Key) (keyconf.Key, error)

PublicKey translates a private to a public key.

func UsageFromTRCKeyType

func UsageFromTRCKeyType(keyType trc.KeyType) (keyconf.Usage, error)

UsageFromTRCKeyType converts the TRC key type to the appropriate usage.

Types

This section is empty.

Jump to

Keyboard shortcuts

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