Commit 3fdc8a3b authored by Simon Schürg's avatar Simon Schürg 🚀
Browse files

Add keygen command

parent cfbce07a
package cmd
import (
"log"
"github.com/spf13/cobra"
)
var keygenCmd = &cobra.Command{
Use: "keygen",
Short: "Generates a key(pair) for JWS signing and verifying.",
Long: `Generates a key(pair) for JWS signing and verifying.`,
Run: func(cmd *cobra.Command, args []string) {
log.Fatalln("This command is not yet implemented!")
},
}
var use string
var alg string
func init() {
keygenCmd.Flags().StringVar(&alg, "alg", "", "Algorithm")
keygenCmd.Flags().StringVar(&use, "use", "", "Key usage (sign or enc)")
rootCmd.AddCommand(keygenCmd)
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment