encode-sender(1)

NAME
encode-sender - Encodes a certificate into an Autocrypt header

SYNOPSIS
encode-sender [-o|--output] [--email] [--prefer-encrypt] [-h|--help] [FILE]

DESCRIPTION
Encodes a certificate into an Autocrypt header

A certificate can be encoded and included in a header of an email message. This command encodes the certificate, adds the senders email address (which must match the one used in the "From" header), and the senders "prefer-encrypt" state (see the Autocrypt spec for more information).

The converse operation is "sq autocrypt decode".

OPTIONS

-o, --output=FILE
    Writes to FILE or stdout if omitted

--email=ADDRESS
    Sets the address [default: primary userid]

--prefer-encrypt=PREFER-ENCRYPT [default: nopreference]
    Sets the prefer-encrypt attribute
    [possible values: nopreference, mutual]

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

[FILE]
    Reads from FILE or stdin if omitted

EXTRA
EXAMPLES: # Encodes a certificate $ sq autocrypt encode-sender juliet.pgp # Encodes a certificate with an explicit sender address $ sq autocrypt encode-sender --email juliet@example.org juliet.pgp # Encodes a certificate while indicating the willingness to encrypt $ sq autocrypt encode-sender --prefer-encrypt mutual juliet.pgp