Skip to content

Commit

Permalink
Update rotate-certificate.go (#37)
Browse files Browse the repository at this point in the history
* Update rotate-certificate.go

* Update rotate-certificate.go

* Update rotate-certificate.go
  • Loading branch information
jdsmithit authored Sep 14, 2023
1 parent 106cc53 commit e5425b3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/cmd/rotate-certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
var rotateCertificateCmd = &cobra.Command{
Use: "rotate-certificate",
Short: "Rotate certificate",
Long: `Rotates the certificate by first creating the new certificate then revokeing the old certificate`,
Long: `Rotates the certificate by first creating the new certificate then revoking the old certificate`,
Run: func(cmd *cobra.Command, args []string) {
profileNameAcm, _ := cmd.Flags().GetString(flags.ProfileNameAcm)
profileNamePca, _ := cmd.Flags().GetString(flags.ProfileNameAcmPca)
Expand Down Expand Up @@ -51,8 +51,9 @@ var rotateCertificateCmd = &cobra.Command{

func init() {
rootCmd.AddCommand(rotateCertificateCmd)

rotateCertificateCmd.PersistentFlags().String(flags.ProfileName, "default", flags.ProfNameAcmPcaDesc)

rotateCertificateCmd.PersistentFlags().String(flags.ProfileNameAcm, "default", flags.ProfNameAcmDesc)
rotateCertificateCmd.PersistentFlags().String(flags.ProfileNameAcmPca, "default", flags.ProfNameAcmPcaDesc)
rotateCertificateCmd.PersistentFlags().String(flags.AcmRegion, "eu-east-1", flags.RegionNameAcmDesc)
rotateCertificateCmd.PersistentFlags().String(flags.PcaRegion, "eu-east-1", flags.RegionNameAcmPcaDesc)
rotateCertificateCmd.PersistentFlags().String(flags.AccessKeyAcm, "", flags.AccessKeyAcmDesc)
Expand Down

0 comments on commit e5425b3

Please sign in to comment.