Skip to content

Commit

Permalink
Merge pull request ThalesGroup#24 from thalescpl-io/verify_cert_chain…
Browse files Browse the repository at this point in the history
…_improvements

Additional behavior for verifying cert chains - now handles the cases…
  • Loading branch information
Sol Cates authored Sep 23, 2020
2 parents 72051fb + c762a3d commit cdbdf4b
Show file tree
Hide file tree
Showing 5 changed files with 263 additions and 22 deletions.
2 changes: 1 addition & 1 deletion cmd/k8s-kms-plugin/cmd/decrypt-csr.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func decryptCSR() error {
func init() {
rootCmd.AddCommand(decryptCSRCmd)
decryptCSRCmd.PersistentFlags().StringVar(&socketPath, "socket", filepath.Join(os.TempDir(), "run", "hsm-plugin-server.sock"), "Unix Socket")
decryptCSRCmd.Flags().DurationVar(&timeout, "timeout", 10*time.Second, "Timeout Duration")
decryptCSRCmd.Flags().DurationVar(&timeout, "timeout", 30*time.Second, "Timeout Duration")
decryptCSRCmd.Flags().StringVarP(&inName, "inName", "f", "", "Input file")
decryptCSRCmd.Flags().StringVarP(&outName, "outName", "o", "", "Output file")
}
2 changes: 1 addition & 1 deletion cmd/k8s-kms-plugin/cmd/generate-kek.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ func generateKEK() error {
func init() {
rootCmd.AddCommand(generateKEKCmd)
generateKEKCmd.PersistentFlags().StringVar(&socketPath, "socket", filepath.Join(os.TempDir(), "run", "hsm-plugin-server.sock"), "Unix Socket")
generateKEKCmd.Flags().DurationVar(&timeout, "timeout", 10*time.Second, "Timeout Duration")
generateKEKCmd.Flags().DurationVar(&timeout, "timeout", 30*time.Second, "Timeout Duration")
generateKEKCmd.Flags().StringVar(&kekID, "kek-id", "", "KEK ID to request")
}
2 changes: 1 addition & 1 deletion cmd/k8s-kms-plugin/cmd/import-ca.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func init() {
rootCmd.AddCommand(importCaCmd)

importCaCmd.PersistentFlags().StringVar(&socketPath, "socket", filepath.Join(os.TempDir(), "run", "hsm-plugin-server.sock"), "Unix Socket")
importCaCmd.Flags().DurationVar(&timeout, "timeout", 10*time.Second, "Timeout Duration")
importCaCmd.Flags().DurationVar(&timeout, "timeout", 30*time.Second, "Timeout Duration")
importCaCmd.Flags().StringVarP(&caCertPath, "cert-file", "f", "", "Certificate File")
importCaCmd.MarkFlagRequired("cert-file")
}
Loading

0 comments on commit cdbdf4b

Please sign in to comment.