---
name: "pskc2csv"
section: "1"
platform: "linux"
package: "pskc-utils"
version: "1.3-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/pskc2csv"
---

# pskc2csv(1)

Convert a PSKC file to CSV

## NAME

pskc2csv - Convert a PSKC file to CSV

## SYNOPSIS

**pskc2csv** \[*options*\] \<*FILE*\>

## DESCRIPTION

**pskc2csv** reads a PSKC file, optionally decrypts any encrypted key material and outputs a CSV file with information from the PSKC file.

## OPTIONS

- **-h, --help**

  Display usage summary.

- **-V, --version**

  Display version information.

- **-o FILE, --output FILE**

  By default **pskc2csv** writes a CSV file to stdout. This option can be used to save the CSV to a file instead.

- **-c COL:LABEL,COL,.., --columns COL:LABEL,COL,..**

  Specify the columns that should be written to the CSV file. Any property of *Key* instances can be used as well as *Policy* properties via **policy**.

  For example: **serial**, **secret**, **counter**, **time\_offset**, **time\_interval**, **interval**, **time\_drift**, **issuer**, **manufacturer**, **response\_length**, **policy.pin\_min\_length**.

  By default **serial,secret,algorithm,response\_length,time\_interval** is used.

  The column can be followed by an optional label to use in the CSV file in place of the column specification.

- **-p PASS/FILE, --password PASS/FILE, --passwd PASS/FILE**

  The password to use for decryption. If the argument refers to a file the password is read from the file instead.

- **-s KEY/FILE, --secret KEY/FILE**

  A hex encoded encryption key or a file containing the binary (raw data, not encoded) key.

- **-e ENCODING, --secret-encoding ENCODING**

  Specify the encoding to use for writing key material to the CSV file. By default HEX encoding is used. Valid encodings are: **base32**, **base64** or **hex**.

## AUTHOR

Arthur de Jong

## COPYRIGHT

2014-2024 Arthur de Jong
