SSH Certificate Authority Toolkit
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
776 B

package main
/*
SSH Certificate Host Client
*/
import (
"log"
"os"
"github.com/urfave/cli"
)
func main() {
app := cli.NewApp()
app.Name = "ssh-user-client"
app.Usage = "SSH Certificate Authority Toolkit - User Key Signing Client"
app.EnableBashCompletion = true
app.Version = "0.1"
app.Flags = []cli.Flag{
cli.StringFlag{
Name: "config, c",
Usage: "Load configuration from `FILE`",
},
}
app.Commands = []cli.Command{
{
Name: "sign",
Usage: "Sign user certificates.",
Flags: signFlags(),
Action: sign,
},
{
Name: "test",
Usage: "Test the configuration file to ensure it follows standards.",
Flags: configTestFlags(),
Action: configTest,
},
}
err := app.Run(os.Args)
if err != nil {
log.Fatal(err)
}
}