diff --git a/cmd/inventory.go b/cmd/inventory.go index be7885a..e81b948 100644 --- a/cmd/inventory.go +++ b/cmd/inventory.go @@ -599,13 +599,20 @@ var inventoryRemoveCmd = &cobra.Command{ } var inventoryFixRFPKCS12 = &cobra.Command{ - Use: "fixrfpkcs12", - Aliases: nil, - SuggestFor: nil, - Short: "Fix RFPKCS12 stores that contain 2 or more leaf certificates, by removing the certificate with the earliest issued date.", - GroupID: "", - Long: `Fix RFPKCS12 stores that contain 2 or more leaf certificates, by removing the certificate with the earliest issued date.`, - Example: "", + Use: "fixrfpkcs12", + Aliases: nil, + SuggestFor: nil, + Short: "Fix RFPKCS12 stores that contain 2 or more leaf certificates, by removing the certificate with the earliest issued date.", + GroupID: "", + Long: `Fix RFPKCS12 stores that contain 2 or more leaf certificates, by removing the certificate with the earliest issued date.`, + Example: ` +# The below will create a CSV file that can be reviewed and modified before running the command with the --file option. +kfutil stores inventory fixrfpkcs12 + +# The below will read the CSV file and schedule remove jobs as specified in the file where the 'Action' col is "REMOVE". +# The --force flag is *required* to actually schedule the remove jobs for the certificates. +kfutil stores inventory fixrfpkcs12 --file rfpkcs12_fix.csv --force +`, ValidArgs: nil, ValidArgsFunction: nil, Args: nil, diff --git a/docs/kfutil.md b/docs/kfutil.md index e201503..ae927e1 100644 --- a/docs/kfutil.md +++ b/docs/kfutil.md @@ -42,4 +42,4 @@ A CLI wrapper around the Keyfactor Platform API. * [kfutil stores](kfutil_stores.md) - Keyfactor certificate stores APIs and utilities. * [kfutil version](kfutil_version.md) - Shows version of kfutil -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_completion.md b/docs/kfutil_completion.md index e4557d0..c005a1e 100644 --- a/docs/kfutil_completion.md +++ b/docs/kfutil_completion.md @@ -41,4 +41,4 @@ See each sub-command's help for details on how to use the generated script. * [kfutil completion powershell](kfutil_completion_powershell.md) - Generate the autocompletion script for powershell * [kfutil completion zsh](kfutil_completion_zsh.md) - Generate the autocompletion script for zsh -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_completion_bash.md b/docs/kfutil_completion_bash.md index 81afccb..1b64ff2 100644 --- a/docs/kfutil_completion_bash.md +++ b/docs/kfutil_completion_bash.md @@ -60,4 +60,4 @@ kfutil completion bash * [kfutil completion](kfutil_completion.md) - Generate the autocompletion script for the specified shell -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_completion_fish.md b/docs/kfutil_completion_fish.md index 32b1b40..973265f 100644 --- a/docs/kfutil_completion_fish.md +++ b/docs/kfutil_completion_fish.md @@ -51,4 +51,4 @@ kfutil completion fish [flags] * [kfutil completion](kfutil_completion.md) - Generate the autocompletion script for the specified shell -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_completion_powershell.md b/docs/kfutil_completion_powershell.md index 5a19e9f..111a40a 100644 --- a/docs/kfutil_completion_powershell.md +++ b/docs/kfutil_completion_powershell.md @@ -48,4 +48,4 @@ kfutil completion powershell [flags] * [kfutil completion](kfutil_completion.md) - Generate the autocompletion script for the specified shell -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_completion_zsh.md b/docs/kfutil_completion_zsh.md index 8865a54..5487b6f 100644 --- a/docs/kfutil_completion_zsh.md +++ b/docs/kfutil_completion_zsh.md @@ -62,4 +62,4 @@ kfutil completion zsh [flags] * [kfutil completion](kfutil_completion.md) - Generate the autocompletion script for the specified shell -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_containers.md b/docs/kfutil_containers.md index 745d5f6..147b817 100644 --- a/docs/kfutil_containers.md +++ b/docs/kfutil_containers.md @@ -37,4 +37,4 @@ A collections of APIs and utilities for interacting with Keyfactor certificate s * [kfutil containers get](kfutil_containers_get.md) - Get certificate store container by ID or name. * [kfutil containers list](kfutil_containers_list.md) - List certificate store containers. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_containers_get.md b/docs/kfutil_containers_get.md index 5838b6d..d3bb95e 100644 --- a/docs/kfutil_containers_get.md +++ b/docs/kfutil_containers_get.md @@ -40,4 +40,4 @@ kfutil containers get [flags] * [kfutil containers](kfutil_containers.md) - Keyfactor certificate store container API and utilities. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_containers_list.md b/docs/kfutil_containers_list.md index 73e5c1d..438b842 100644 --- a/docs/kfutil_containers_list.md +++ b/docs/kfutil_containers_list.md @@ -39,4 +39,4 @@ kfutil containers list [flags] * [kfutil containers](kfutil_containers.md) - Keyfactor certificate store container API and utilities. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_export.md b/docs/kfutil_export.md index 5445dc2..cbdb610 100644 --- a/docs/kfutil_export.md +++ b/docs/kfutil_export.md @@ -51,4 +51,4 @@ kfutil export [flags] * [kfutil](kfutil.md) - Keyfactor CLI utilities -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_helm.md b/docs/kfutil_helm.md index 55754d4..597a574 100644 --- a/docs/kfutil_helm.md +++ b/docs/kfutil_helm.md @@ -42,4 +42,4 @@ kubectl helm uo | helm install -f - keyfactor-universal-orchestrator keyfactor/k * [kfutil](kfutil.md) - Keyfactor CLI utilities * [kfutil helm uo](kfutil_helm_uo.md) - Configure the Keyfactor Universal Orchestrator Helm Chart -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_helm_uo.md b/docs/kfutil_helm_uo.md index d7d8f9c..c444628 100644 --- a/docs/kfutil_helm_uo.md +++ b/docs/kfutil_helm_uo.md @@ -46,4 +46,4 @@ kfutil helm uo [-t ] [-o ] [-f ] [-e -e @,@ -o ./app/extension * [kfutil orchs](kfutil_orchs.md) - Keyfactor agents/orchestrators APIs and utilities. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_orchs_get.md b/docs/kfutil_orchs_get.md index 5011e1a..e4736f9 100644 --- a/docs/kfutil_orchs_get.md +++ b/docs/kfutil_orchs_get.md @@ -40,4 +40,4 @@ kfutil orchs get [flags] * [kfutil orchs](kfutil_orchs.md) - Keyfactor agents/orchestrators APIs and utilities. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_orchs_list.md b/docs/kfutil_orchs_list.md index e41c8f3..38945b1 100644 --- a/docs/kfutil_orchs_list.md +++ b/docs/kfutil_orchs_list.md @@ -39,4 +39,4 @@ kfutil orchs list [flags] * [kfutil orchs](kfutil_orchs.md) - Keyfactor agents/orchestrators APIs and utilities. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_orchs_logs.md b/docs/kfutil_orchs_logs.md index 07c7e5d..72dfeca 100644 --- a/docs/kfutil_orchs_logs.md +++ b/docs/kfutil_orchs_logs.md @@ -40,4 +40,4 @@ kfutil orchs logs [flags] * [kfutil orchs](kfutil_orchs.md) - Keyfactor agents/orchestrators APIs and utilities. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_orchs_reset.md b/docs/kfutil_orchs_reset.md index 0e46fd0..c6f0957 100644 --- a/docs/kfutil_orchs_reset.md +++ b/docs/kfutil_orchs_reset.md @@ -40,4 +40,4 @@ kfutil orchs reset [flags] * [kfutil orchs](kfutil_orchs.md) - Keyfactor agents/orchestrators APIs and utilities. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_pam.md b/docs/kfutil_pam.md index 48ec53a..8199b61 100644 --- a/docs/kfutil_pam.md +++ b/docs/kfutil_pam.md @@ -44,4 +44,4 @@ programmatically create, delete, edit, and list PAM Providers. * [kfutil pam types-list](kfutil_pam_types-list.md) - Returns a list of all available PAM provider types. * [kfutil pam update](kfutil_pam_update.md) - Updates an existing PAM Provider, currently only supported from file. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_pam_create.md b/docs/kfutil_pam_create.md index 752f914..b536fb6 100644 --- a/docs/kfutil_pam_create.md +++ b/docs/kfutil_pam_create.md @@ -40,4 +40,4 @@ kfutil pam create [flags] * [kfutil pam](kfutil_pam.md) - Keyfactor PAM Provider APIs. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_pam_delete.md b/docs/kfutil_pam_delete.md index 27d2410..a0a537f 100644 --- a/docs/kfutil_pam_delete.md +++ b/docs/kfutil_pam_delete.md @@ -40,4 +40,4 @@ kfutil pam delete [flags] * [kfutil pam](kfutil_pam.md) - Keyfactor PAM Provider APIs. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_pam_get.md b/docs/kfutil_pam_get.md index 62f4b75..0f2e7f2 100644 --- a/docs/kfutil_pam_get.md +++ b/docs/kfutil_pam_get.md @@ -40,4 +40,4 @@ kfutil pam get [flags] * [kfutil pam](kfutil_pam.md) - Keyfactor PAM Provider APIs. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_pam_list.md b/docs/kfutil_pam_list.md index af95f9b..ed64c10 100644 --- a/docs/kfutil_pam_list.md +++ b/docs/kfutil_pam_list.md @@ -39,4 +39,4 @@ kfutil pam list [flags] * [kfutil pam](kfutil_pam.md) - Keyfactor PAM Provider APIs. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_pam_types-create.md b/docs/kfutil_pam_types-create.md index d6e2e49..be5d84f 100644 --- a/docs/kfutil_pam_types-create.md +++ b/docs/kfutil_pam_types-create.md @@ -47,4 +47,4 @@ kfutil pam types-create [flags] * [kfutil pam](kfutil_pam.md) - Keyfactor PAM Provider APIs. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_pam_types-list.md b/docs/kfutil_pam_types-list.md index 33fb9da..10e234c 100644 --- a/docs/kfutil_pam_types-list.md +++ b/docs/kfutil_pam_types-list.md @@ -39,4 +39,4 @@ kfutil pam types-list [flags] * [kfutil pam](kfutil_pam.md) - Keyfactor PAM Provider APIs. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_pam_update.md b/docs/kfutil_pam_update.md index c92d707..26e8d34 100644 --- a/docs/kfutil_pam_update.md +++ b/docs/kfutil_pam_update.md @@ -40,4 +40,4 @@ kfutil pam update [flags] * [kfutil pam](kfutil_pam.md) - Keyfactor PAM Provider APIs. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_status.md b/docs/kfutil_status.md index 55a3647..413e5f2 100644 --- a/docs/kfutil_status.md +++ b/docs/kfutil_status.md @@ -39,4 +39,4 @@ kfutil status [flags] * [kfutil](kfutil.md) - Keyfactor CLI utilities -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_store-types.md b/docs/kfutil_store-types.md index 6512726..c2f2d5e 100644 --- a/docs/kfutil_store-types.md +++ b/docs/kfutil_store-types.md @@ -40,4 +40,4 @@ A collections of APIs and utilities for interacting with Keyfactor certificate s * [kfutil store-types list](kfutil_store-types_list.md) - List certificate store types. * [kfutil store-types templates-fetch](kfutil_store-types_templates-fetch.md) - Fetches store type templates from Keyfactor's Github. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_store-types_create.md b/docs/kfutil_store-types_create.md index e9cca52..d10daa3 100644 --- a/docs/kfutil_store-types_create.md +++ b/docs/kfutil_store-types_create.md @@ -18,7 +18,7 @@ kfutil store-types create [flags] -b, --git-ref string The git branch or tag to reference when pulling store-types from the internet. (default "main") -h, --help help for create -l, --list List valid store types. - -n, --name string Short name of the certificate store type to get. Valid choices are: AKV, AzureApp, AzureAppGW, AzureSP, Fortigate, HCVKV, HCVKVJKS, HCVKVP12, HCVKVPEM, HCVKVPFX, HCVPKI, IISU, K8SCert, K8SCluster, K8SJKS, K8SNS, K8SPKCS12, K8SSecret, K8STLSSecr, RFDER, RFJKS, RFKDB, RFORA, RFPEM, RFPkcs12, SAMPLETYPE, Signum, VMware-NSX, WinCerMgmt, WinCert + -n, --name string Short name of the certificate store type to get. Valid choices are: AKV, AWS-ACM, Akamai, AppGwBin, AzureApp, AzureAppGw, AzureSP, BIPCamera, CiscoAsa, CitrixAdc, F5-BigIQ, F5-CA-REST, F5-SL-REST, F5-WS-REST, Fortigate, GCPLoadBal, GcpCertMgr, HCVKV, HCVKVJKS, HCVKVP12, HCVKVPEM, HCVKVPFX, HCVPKI, IISU, Imperva, K8SCert, K8SCluster, K8SJKS, K8SNS, K8SPKCS12, K8SSecret, K8STLSSecr, MOST, Nmap, PaloAlto, RFDER, RFJKS, RFKDB, RFORA, RFPEM, RFPkcs12, SAMPLETYPE, Signum, VMware-NSX, WinCerMgmt, WinCert, WinSql ``` ### Options inherited from parent commands @@ -44,4 +44,4 @@ kfutil store-types create [flags] * [kfutil store-types](kfutil_store-types.md) - Keyfactor certificate store types APIs and utilities. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_store-types_delete.md b/docs/kfutil_store-types_delete.md index 2fd868d..9668789 100644 --- a/docs/kfutil_store-types_delete.md +++ b/docs/kfutil_store-types_delete.md @@ -43,4 +43,4 @@ kfutil store-types delete [flags] * [kfutil store-types](kfutil_store-types.md) - Keyfactor certificate store types APIs and utilities. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_store-types_get.md b/docs/kfutil_store-types_get.md index f272b16..e26d995 100644 --- a/docs/kfutil_store-types_get.md +++ b/docs/kfutil_store-types_get.md @@ -44,4 +44,4 @@ kfutil store-types get [-i | -n ] [-b * [kfutil store-types](kfutil_store-types.md) - Keyfactor certificate store types APIs and utilities. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_store-types_list.md b/docs/kfutil_store-types_list.md index 5e65ce9..0c8394b 100644 --- a/docs/kfutil_store-types_list.md +++ b/docs/kfutil_store-types_list.md @@ -39,4 +39,4 @@ kfutil store-types list [flags] * [kfutil store-types](kfutil_store-types.md) - Keyfactor certificate store types APIs and utilities. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_store-types_templates-fetch.md b/docs/kfutil_store-types_templates-fetch.md index 305f700..3f88a97 100644 --- a/docs/kfutil_store-types_templates-fetch.md +++ b/docs/kfutil_store-types_templates-fetch.md @@ -40,4 +40,4 @@ kfutil store-types templates-fetch [flags] * [kfutil store-types](kfutil_store-types.md) - Keyfactor certificate store types APIs and utilities. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_stores.md b/docs/kfutil_stores.md index 895cb02..51be7a1 100644 --- a/docs/kfutil_stores.md +++ b/docs/kfutil_stores.md @@ -42,4 +42,4 @@ A collections of APIs and utilities for interacting with Keyfactor certificate s * [kfutil stores list](kfutil_stores_list.md) - List certificate stores. * [kfutil stores rot](kfutil_stores_rot.md) - Root of trust utility -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_stores_delete.md b/docs/kfutil_stores_delete.md index b1f6f10..5b248da 100644 --- a/docs/kfutil_stores_delete.md +++ b/docs/kfutil_stores_delete.md @@ -42,4 +42,4 @@ kfutil stores delete [flags] * [kfutil stores](kfutil_stores.md) - Keyfactor certificate stores APIs and utilities. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_stores_export.md b/docs/kfutil_stores_export.md index 07a8a61..5fb180f 100644 --- a/docs/kfutil_stores_export.md +++ b/docs/kfutil_stores_export.md @@ -43,4 +43,4 @@ kfutil stores export [flags] * [kfutil stores](kfutil_stores.md) - Keyfactor certificate stores APIs and utilities. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_stores_get.md b/docs/kfutil_stores_get.md index 4592c8e..d5aa5cc 100644 --- a/docs/kfutil_stores_get.md +++ b/docs/kfutil_stores_get.md @@ -40,4 +40,4 @@ kfutil stores get [flags] * [kfutil stores](kfutil_stores.md) - Keyfactor certificate stores APIs and utilities. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_stores_import.md b/docs/kfutil_stores_import.md index fe02d29..0bbf1a0 100644 --- a/docs/kfutil_stores_import.md +++ b/docs/kfutil_stores_import.md @@ -37,4 +37,4 @@ Tools for generating import templates and importing certificate stores * [kfutil stores import csv](kfutil_stores_import_csv.md) - Create certificate stores from CSV file. * [kfutil stores import generate-template](kfutil_stores_import_generate-template.md) - For generating a CSV template with headers for bulk store creation. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_stores_import_csv.md b/docs/kfutil_stores_import_csv.md index 1766049..9c0cf0b 100644 --- a/docs/kfutil_stores_import_csv.md +++ b/docs/kfutil_stores_import_csv.md @@ -47,4 +47,4 @@ kfutil stores import csv --file --store-type-id --store-t * [kfutil stores import](kfutil_stores_import.md) - Import a file with certificate store parameters and create them in keyfactor. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_stores_inventory.md b/docs/kfutil_stores_inventory.md index 39563a5..de68904 100644 --- a/docs/kfutil_stores_inventory.md +++ b/docs/kfutil_stores_inventory.md @@ -35,7 +35,9 @@ Commands related to certificate store inventory management * [kfutil stores](kfutil_stores.md) - Keyfactor certificate stores APIs and utilities. * [kfutil stores inventory add](kfutil_stores_inventory_add.md) - Adds one or more certificates to one or more certificate store inventories. +* [kfutil stores inventory fixrfpkcs12](kfutil_stores_inventory_fixrfpkcs12.md) - Fix RFPKCS12 stores that contain 2 + or more leaf certificates, by removing the certificate with the earliest issued date. * [kfutil stores inventory remove](kfutil_stores_inventory_remove.md) - Removes a certificate from the certificate store inventory. * [kfutil stores inventory show](kfutil_stores_inventory_show.md) - Show the inventory of a certificate store. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_stores_inventory_add.md b/docs/kfutil_stores_inventory_add.md index 84014d2..cc65b84 100644 --- a/docs/kfutil_stores_inventory_add.md +++ b/docs/kfutil_stores_inventory_add.md @@ -53,4 +53,4 @@ kfutil stores inventory add [flags] * [kfutil stores inventory](kfutil_stores_inventory.md) - Commands related to certificate store inventory management -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_stores_inventory_fixrfpkcs12.md b/docs/kfutil_stores_inventory_fixrfpkcs12.md new file mode 100644 index 0000000..d2e9adf --- /dev/null +++ b/docs/kfutil_stores_inventory_fixrfpkcs12.md @@ -0,0 +1,57 @@ +## kfutil stores inventory fixrfpkcs12 + +Fix RFPKCS12 stores that contain 2 or more leaf certificates, by removing the certificate with the earliest issued date. + +### Synopsis + +Fix RFPKCS12 stores that contain 2 or more leaf certificates, by removing the certificate with the earliest issued date. + +``` +kfutil stores inventory fixrfpkcs12 [flags] +``` + +### Examples + +``` + +# The below will create a CSV file that can be reviewed and modified before running the command with the --file option. +kfutil stores inventory fixrfpkcs12 + +# The below will read the CSV file and schedule remove jobs as specified in the file where the 'Action' col is "REMOVE". +# The --force flag is *required* to actually schedule the remove jobs for the certificates. +kfutil stores inventory fixrfpkcs12 --file rfpkcs12_fix.csv --force + +``` + +### Options + +``` + --file string CSV file to import for RFPKCS12 store fix. + --force Force the removal of the certificate(s) without prompting for confirmation. + -h, --help help for fixrfpkcs12 +``` + +### Options inherited from parent commands + +``` + --api-path string API Path to use for authenticating to Keyfactor Command. (default is KeyfactorAPI) (default "KeyfactorAPI") + --auth-provider-profile string The profile to use defined in the securely stored config. If not specified the config named 'default' will be used if it exists. (default "default") + --auth-provider-type string Provider type choices: (azid) + --config string Full path to config file in JSON format. (default is $HOME/.keyfactor/command_config.json) + --debug Enable debugFlag logging. + --domain string Domain to use for authenticating to Keyfactor Command. + --exp Enable expEnabled features. (USE AT YOUR OWN RISK, these features are not supported and may change or be removed at any time.) + --format text How to format the CLI output. Currently only text is supported. (default "text") + --hostname string Hostname to use for authenticating to Keyfactor Command. + --log-insecure Log insecure API requests. (USE AT YOUR OWN RISK, this WILL log sensitive information to the console.) + --no-prompt Do not prompt for any user input and assume defaults or environmental variables are set. + --password string Password to use for authenticating to Keyfactor Command. WARNING: Remember to delete your console history if providing kfcPassword here in plain text. + --profile string Use a specific profile from your config file. If not specified the config named 'default' will be used if it exists. + --username string Username to use for authenticating to Keyfactor Command. +``` + +### SEE ALSO + +* [kfutil stores inventory](kfutil_stores_inventory.md) - Commands related to certificate store inventory management + +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_stores_inventory_remove.md b/docs/kfutil_stores_inventory_remove.md index 200d649..2ac7ee6 100644 --- a/docs/kfutil_stores_inventory_remove.md +++ b/docs/kfutil_stores_inventory_remove.md @@ -49,4 +49,4 @@ kfutil stores inventory remove [flags] * [kfutil stores inventory](kfutil_stores_inventory.md) - Commands related to certificate store inventory management -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_stores_inventory_show.md b/docs/kfutil_stores_inventory_show.md index 76ec36d..a7ed434 100644 --- a/docs/kfutil_stores_inventory_show.md +++ b/docs/kfutil_stores_inventory_show.md @@ -43,4 +43,4 @@ kfutil stores inventory show [flags] * [kfutil stores inventory](kfutil_stores_inventory.md) - Commands related to certificate store inventory management -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_stores_list.md b/docs/kfutil_stores_list.md index eb1eeb4..cce48a5 100644 --- a/docs/kfutil_stores_list.md +++ b/docs/kfutil_stores_list.md @@ -39,4 +39,4 @@ kfutil stores list [flags] * [kfutil stores](kfutil_stores.md) - Keyfactor certificate stores APIs and utilities. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_stores_rot.md b/docs/kfutil_stores_rot.md index d3d7d63..a54018f 100644 --- a/docs/kfutil_stores_rot.md +++ b/docs/kfutil_stores_rot.md @@ -50,4 +50,4 @@ kfutil stores rot reconcile --import-csv * [kfutil stores rot generate-template](kfutil_stores_rot_generate-template.md) - For generating Root Of Trust template(s) * [kfutil stores rot reconcile](kfutil_stores_rot_reconcile.md) - Reconcile either takes in or will generate an audit report and then add/remove certs as needed. -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_stores_rot_audit.md b/docs/kfutil_stores_rot_audit.md index a03ce0d..a19d744 100644 --- a/docs/kfutil_stores_rot_audit.md +++ b/docs/kfutil_stores_rot_audit.md @@ -47,4 +47,4 @@ kfutil stores rot audit [flags] * [kfutil stores rot](kfutil_stores_rot.md) - Root of trust utility -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_stores_rot_generate-template.md b/docs/kfutil_stores_rot_generate-template.md index 7c143a9..a13afa7 100644 --- a/docs/kfutil_stores_rot_generate-template.md +++ b/docs/kfutil_stores_rot_generate-template.md @@ -45,4 +45,4 @@ kfutil stores rot generate-template [flags] * [kfutil stores rot](kfutil_stores_rot.md) - Root of trust utility -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_stores_rot_reconcile.md b/docs/kfutil_stores_rot_reconcile.md index 24c49be..ea57c10 100644 --- a/docs/kfutil_stores_rot_reconcile.md +++ b/docs/kfutil_stores_rot_reconcile.md @@ -52,4 +52,4 @@ kfutil stores rot reconcile [flags] * [kfutil stores rot](kfutil_stores_rot.md) - Root of trust utility -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/docs/kfutil_version.md b/docs/kfutil_version.md index 45ebfb3..58142ca 100644 --- a/docs/kfutil_version.md +++ b/docs/kfutil_version.md @@ -39,4 +39,4 @@ kfutil version [flags] * [kfutil](kfutil.md) - Keyfactor CLI utilities -###### Auto generated by spf13/cobra on 27-Feb-2024 +###### Auto generated by spf13/cobra on 23-Oct-2024 diff --git a/main.go b/main.go index 69f352b..bb3ff94 100644 --- a/main.go +++ b/main.go @@ -28,3 +28,7 @@ func main() { //} cmd.Execute() } + +//func docs() { +// doc.GenMarkdownTree(cmd.RootCmd, "./docs") +//}