---
name: "oct-pubkey"
section: "1"
platform: "linux"
package: "openpgp-card-tools"
version: "0.11.13-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/oct-pubkey"
---

# oct-pubkey(1)

Export the key data on a card as an OpenPGP public key

## NAME

oct-pubkey - Export the key data on a card as an OpenPGP public key

## SYNOPSIS

**oct pubkey** \<**-c**\|**--card**\> \[**-p**\|**--user-pin**\] \<**-u**\|**--userid**\> \[**-h**\|**--help**\]

## DESCRIPTION

Export the key data on a card as an OpenPGP public key

## OPTIONS

- **-c**, **--card** *\<card ident\>*

  Identifier of the card to use

- **-p**, **--user-pin** *\<User PIN file\>*

  Optionally, get User PIN from a file

- **-u**, **--userid** *\<User ID\>*

  User ID to add to the exported certificate representation

- **-h**, **--help**

  Print help
