Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ECDSA = &cobra.Command{ Use: "ecdsa", Short: "Generate an ECDSA Certificate Signing Request", Run: func(_ *cobra.Command, _ []string) { common, ecdsaArgs := args.CommonArgs(), args.ECDSAArgs() key, err := ecdsa.LoadOrGeneratePrivateKey(common, ecdsaArgs) if err != nil { panic(err) } if err := ecdsaArgs.DecodeCurve(); err != nil { panic(err) } if err := easycsr.Build(key, common); err != nil { panic(err) } }, }
View Source
var RSA = &cobra.Command{ Use: "rsa", Short: "Generate an RSA Certificate Signing Request", Run: func(_ *cobra.Command, _ []string) { common, rsaArgs := args.CommonArgs(), args.RSAArgs() key, err := rsa.LoadOrGeneratePrivateKey(common, rsaArgs) if err != nil { panic(err) } if err := common.DecodeRSASigAlg(); err != nil { panic(err) } if err := easycsr.Build(key, common); err != nil { panic(err) } }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.