initcmd

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cli.Subcmd{
	FlagSet: flag.NewFlagSet("init", flag.ExitOnError),
	Desc:    "Generate ed25519 keypair and TLS cert/key",
	Run: func(fm fsdir.T) {
		initcmd.Cmd("wireleap-relay", initcmd.KeypairStep, initcmd.UnpackStep(embedded.FS)).Run(fm)
		privkey, err := cli.LoadKey(fm, filenames.Seed)
		if err != nil {
			log.Fatal(err)
		}
		if err := tlscert.Generate(fm.Path(filenames.TLSCert), fm.Path(filenames.TLSKey), privkey); err != nil {
			log.Fatal(err)
		}
	},
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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