Skip to content

Latest commit

 

History

History
50 lines (39 loc) · 3.08 KB

kfutil_stores_import_csv.md

File metadata and controls

50 lines (39 loc) · 3.08 KB

kfutil stores import csv

Create certificate stores from CSV file.

Synopsis

Certificate stores: Will parse a CSV and attempt to create a certificate store for each row with the provided parameters. 'store-type-name' OR 'store-type-id' are required. 'file' is the path to the file to be imported. 'resultspath' is where the import results will be written to.

kfutil stores import csv --file <file name to import> --store-type-id <store type id> --store-type-name <store type name> --results-path <filepath for results> --dry-run <check fields only> [flags]

Options

  -d, --dry-run                  Do not import, just check for necessary fields.
  -f, --file string              CSV file containing cert stores to create.
  -h, --help                     help for csv
  -o, --results-path string      CSV file containing cert stores to create. defaults to <imported file name>_results.csv
  -i, --store-type-id int        The ID of the cert store type for the stores. (default -1)
  -n, --store-type-name string   The name of the cert store type.  Use if store-type-id is unknown.

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 import - Import a file with certificate store parameters and create them in keyfactor.
Auto generated by spf13/cobra on 27-Feb-2024