export(1)

NAME
export - Exports certificates from the local certificate store

SYNOPSIS
export [-B|--binary] [--cert] [--key] [--userid] [--grep] [--email] [--domain] [-h|--help]

DESCRIPTION
Exports certificates from the local certificate store

If multiple predicates are specified a certificate is returned if at least one of them matches.

This does not check the authenticity of the certificates in anyway. Before using the certificates, be sure to validate and authenticate them.

When matching on subkeys or User IDs, the component must have a valid self signature according to the policy. This is not the case when matching the certificate's key handle using `--cert` or when exporting all certificates.

Fails if search criteria are specified and none of them matches any certificates. Note: this means if the certificate store is empty and no search criteria are specified, then this will return success.

OPTIONS

-B, --binary=BINARY
    Emits binary data

--cert=FINGERPRINT|KEYID
    Returns certificates that have the specified fingerprint or key ID

--key=FINGERPRINT|KEYID
    Returns certificates where the primary key or a subkey has the specified fingerprint or key ID

--userid=USERID
    Returns certificates that have a User ID that matches exactly, including case

--grep=PATTERN
    Returns certificates that have a User ID that contains the string, case insensitively

--email=EMAIL
    Returns certificates that have a User ID with the specified email address, case insensitively

--domain=DOMAIN
    Returns certificates that have a User ID with an email address from the specified domain

-h, --help
    Print help information (use `-h` for a summary)

EXTRA
EXAMPLES: # Exports all certificates. $ sq export > all.pgp # Exports certificates with a matching User ID packet. The binding # signatures are checked, but the User IDs are not authenticated. # Note: this check is case sensitive. $ sq export --userid 'Alice <alice@example.org>' # Exports certificates with a User ID containing the email address. # The binding signatures are checked, but the User IDs are not # authenticated. Note: this check is case insensitive. $ sq export --email 'alice@example.org' # Exports certificates where the certificate (i.e., the primary key) # has the specified Key ID. $ sq export --cert 1234567812345678 # Exports certificates where the primary key or a subkey matches the # specified Key ID. $ sq export --key 1234567812345678 # Exports certificates that contain a User ID with *either* (not # both!) email address. Note: this check is case insensitive. $ sq export --email alice@example.org --email bob@example.org