---
name: "rsop-change-key-password"
section: "1"
platform: "linux"
package: "rsop"
version: "0.12.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/rsop-change-key-password"
---

# rsop-change-key-password(1)

Updates a key's password

## NAME

rsop-change-key-password - Updates a key's password

## SYNOPSIS

**rsop change-key-password** \[**--debug**\] \[**--no-armor**\] \[**--new-key-password**\] \[**--old-key-password**\] \[**-h**\|**--help**\]

## DESCRIPTION

Updates a key's password.

The output will be the same set of OpenPGP Transferable Secret Keys as the input, but with all secret key material locked according to the password indicated by the \`--new-key-password\` option (or, with no password at all, if \`--new-key-password\` is absent).  Note that \`--old-key-password\` can be supplied multiple times, and each supplied password will be tried as a means to unlock any locked key material encountered.  It will normalize a Transferable Secret Key to use a single password even if it originally had distinct passwords locking each of the subkeys.

If any secret key packet is locked but cannot be unlocked with any of the supplied \`--old-key-password\` arguments, this subcommand should fail with \`KEY\_IS\_PROTECTED\`.

## OPTIONS

- **--debug**

  Emit verbose output for debugging

- **--no-armor**

  Don't ASCII-armor output

- **--new-key-password** *\<NEW\_KEY\_PASSWORD\>*

  The new password to lock the key with, or just unlock the key if the option is absent

- **--old-key-password** *\<OLD\_KEY\_PASSWORD\>*

  Unlock the keys with these passwords

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

  Print help (see a summary with '-h')
