cmd

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "scion-pki",
	Short: "Scion Public Key Infrastructure Management Tool",
	Long: `scion-pki is a tool to generate keys, certificates, and trust
	root configuration files used in the SCION control plane PKI.
	
	The subcommands expect the contents of the root directory to follow a rigid and
	predefined file structure:
	
	<root>
	├── ISD1
	│   ├── ASff00_0_c
	│   │   ├── as-v1.toml      # AS certificate configuration (versioned)
	│   │   ├── certs           # Dir containing issuer certificates and certificate chains
	│   │   ├── issuer-v1.toml  # Issuer certificate configuration (versioned)
	│   │   ├── keys            # Dir containing private keys
	│   │   ├── keys.toml       # Keys configuration file
	│   │   └── pub             # Dir containing public keys
	│   ├── trcs                # Dir containing partial and signed TRCs
	│   │   └── ISD1-V1.parts   # Dir containing partially signed TRC for specific version
	│   └── trc-v1.toml         # TRC configuration (versioned)
	
	A sample file structure can be generated in 'DIR' by running:
	  scion-pki tmpl sample > $DIR/sample.topo
	  scion-pki tmpl topo -d $DIR sample.topo
	
	The 'certs', 'keys', 'trcs' directories are created on demand by the tool.
	`,
	PersistentPreRun: func(cmd *cobra.Command, args []string) {

		if pkicmn.OutDir == "" {
			pkicmn.OutDir = pkicmn.RootDir
		}
	},
	SilenceErrors: true,
}

Functions

func Execute

func Execute()

Types

This section is empty.

Jump to

Keyboard shortcuts

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