Sponsor:

Your company here — click to reach over 10,000 unique daily visitors

sq-key-expire - Man Page

Change expiration times

Synopsis

sq key expire [Options] EXPIRATION

Description

Change expiration times.

Change or clear a certificate's expiration time.

This subcommand changes the certificate's expiration time.  To change the expiration time of an individual subkey, use the `sq key subkey expire` subcommand.

Options

Subcommand options

-B, --binary

Emit binary data

--cert=FINGERPRINT|KEYID

Change the certificate's expiration time

--cert-file=CERT_FILE

Change the certificate's expiration time

-o, --output=FILE

Write to FILE or stdout if omitted

EXPIRATION

Define EXPIRATION for the key as ISO 8601 formatted string or custom duration. If an ISO 8601 formatted string is provided, the validity period reaches from the reference time (may be set using `--time`) to the provided time. Custom durations starting from the reference time may be set using `N[ymwds]`, for N years, months, weeks, days, or seconds. The special keyword `never` sets an unlimited expiry.

Global options

See sq(1) for a description of the global options.

Examples

Make Alice's key expire in a year.

    sq key expire 1y --cert-file alice-secret.pgp

Make Alice's key never expire.

    sq key expire never --cert-file alice-secret.pgp

See Also

sq(1), sq-key(1).

For the full documentation see <https://book.sequoia-pgp.org>.

Version

0.37.0 (sequoia-openpgp 1.21.1)

Referenced By

sq-key(1).

0.37.0 Sequoia PGP