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
772 B

4 years ago
  1. package main
  2. /*
  3. SSH Certificate Host Client
  4. */
  5. import (
  6. "log"
  7. "os"
  8. "github.com/urfave/cli"
  9. )
  10. func main() {
  11. app := cli.NewApp()
  12. app.Name = "ssh-host-client"
  13. app.Usage = "SSH Certificate Authority Toolkit - Host Signing Client"
  14. app.EnableBashCompletion = true
  15. app.Version = "0.1"
  16. app.Flags = []cli.Flag{
  17. cli.StringFlag{
  18. Name: "config, c",
  19. Usage: "Load configuration from `FILE`",
  20. },
  21. }
  22. app.Commands = []cli.Command{
  23. {
  24. Name: "sign",
  25. Usage: "Sign host certificates.",
  26. Flags: signFlags(),
  27. Action: sign,
  28. },
  29. {
  30. Name: "test",
  31. Usage: "Test the configuration file to ensure it follows standards.",
  32. Flags: configTestFlags(),
  33. Action: configTest,
  34. },
  35. }
  36. err := app.Run(os.Args)
  37. if err != nil {
  38. log.Fatal(err)
  39. }
  40. }