Man page - sq-key-generate(1)
Packages contains this manual
- sq-network-keyserver(1)
- sq-key-expire(1)
- sq-pki-link(1)
- sq-pki-link-authorize(1)
- sq-network-dane-generate(1)
- sq-config-inspect-network(1)
- sq-network-dane-search(1)
- sq-pki-vouch-list(1)
- sq-keyring-list(1)
- sq-pki-vouch(1)
- sq-packet-join(1)
- sq-key-subkey-bind(1)
- sq-key-userid-revoke(1)
- sq-packet-split(1)
- sq-config-inspect(1)
- sq-network-search(1)
- sq-pki-path(1)
- sq-keyring-split(1)
- sq-key-subkey-export(1)
- sq-sign(1)
- sq-network-wkd-publish(1)
- sq-key-delete(1)
- sq-packet-decrypt(1)
- sq-key-subkey-password(1)
- sq-cert-list(1)
- sq-key-userid(1)
- sq-network-wkd-search(1)
- sq-pki-link-retract(1)
- sq-keyring-merge(1)
- sq-key-subkey(1)
- sq-pki(1)
- sq-cert(1)
- sq-key-list(1)
- sq-pki-vouch-replay(1)
- sq-pki-authenticate(1)
- sq-pki-link-add(1)
- sq-key-password(1)
- sq-network-keyserver-publish(1)
- sq-config-get(1)
- sq-key-subkey-delete(1)
- sq-config-inspect-paths(1)
- sq-packet-dump(1)
- sq-key-rotate(1)
- sq-key-approvals-list(1)
- sq-download(1)
- sq-key-export(1)
- sq-keyring(1)
- sq-version(1)
- sq-key-userid-add(1)
- sq-pki-vouch-add(1)
- sq-packet-dearmor(1)
- sq-packet(1)
- sq-cert-import(1)
- sq-key-subkey-revoke(1)
- sq-key-approvals-update(1)
- sq-network-keyserver-search(1)
- sq-inspect(1)
- sq-pki-identify(1)
- sq-keyring-filter(1)
- sq-network(1)
- sq-pki-lookup(1)
- sq-pki-link-list(1)
- sq-cert-lint(1)
- sq-key-approvals(1)
- sq-cert-export(1)
- sq-network-wkd(1)
- sq-verify(1)
- sq-key-revoke(1)
- sq-config-inspect-policy(1)
- sq-decrypt(1)
- sq-network-dane(1)
- sq-key-generate(1)
- sq-key-import(1)
- sq(1)
- sq-config(1)
- sq-config-template(1)
- sq-pki-vouch-authorize(1)
- sq-key(1)
- sq-encrypt(1)
- sq-key-subkey-expire(1)
- sq-key-subkey-add(1)
- sq-packet-armor(1)
apt-get install sq
Manual
SQ
NAMESYNOPSIS
DESCRIPTION
OPTIONS
Subcommand options
Global options
EXAMPLES
SEE ALSO
VERSION
NAME
sq-key-generate - Generate a new key
SYNOPSIS
sq key generate [ OPTIONS ]
DESCRIPTION
Generate a new key.
Generating a key is the prerequisite to receiving encrypted messages and creating signatures. There are a few parameters to this process, but we provide reasonable defaults for most users.
When generating a key, we also generate an emergency revocation certificate. This can be used in case the key is lost or compromised. It is saved alongside the key. This can be changed using the ā--rev-certā argument.
By default a key expires after 3 years. This can be changed using the ā--expirationā argument.
āsq key generateā respects the reference time set by the top-level ā--timeā argument. It sets the creation time of the primary key, any subkeys, and the binding signatures to the reference time.
OPTIONS
Subcommand options
--allow-non-canonical-userids
Donāt reject user IDs that are not in canonical form
Canonical user IDs are of the form āName (Comment) <localpart@example.org>ā.
--can-authenticate
Add an authentication-capable subkey (default)
--can-encrypt = PURPOSE
Add an encryption-capable subkey [default: universal]
Encryption-capable subkeys can be marked as suitable for transport encryption, storage encryption, or both, i.e., universal.
[possible values: transport , storage , universal ]
--can-sign
Add a signing-capable subkey (default)
--cannot-authenticate
Donāt add an authentication-capable subkey
--cannot-encrypt
Donāt add an encryption-capable subkey
--cannot-sign
Donāt add a signing-capable subkey
--cipher-suite = CIPHER-SUITE
Select the cryptographic algorithms for the key
The default can be changed in the configuration file using the setting ākey.generate.cipher-suiteā.
[default: cv25519 ]
[possible values: rsa2k , rsa3k , rsa4k , cv25519 ]
--email = ADDRESS
Add an email address as user ID to the key
--expiration = EXPIRATION
Sets the expiration time
EXPIRATION is either an ISO 8601 formatted date with an optional time or a custom duration. A duration takes the form āN[ymwds]ā, where the letters stand for years, months, weeks, days, and seconds, respectively. Alternatively, the keyword āneverā does not set an expiration time.
[default: 3y ]
--name = NAME
Add a name as user ID to the key
--new-password-file = PASSWORD_FILE
File containing password to encrypt the secret key material
Note that the entire key file will be used as the password including any surrounding whitespace like a trailing newline.
--no-userids
Create a key without any user IDs
--output = FILE
Write the key to the specified file
When not specified, the key is saved on the key store.
--own-key
Mark the key as oneās own key
The newly generated key with all of its user IDs will be marked as authenticated and as a fully trusted introducer.
--profile = PROFILE
Select the OpenPGP standard for the key
As OpenPGP evolves, new versions will become available. This option selects the version of OpenPGP to use for the newly generated key.
Currently, sq supports two profiles: RFC9580 and RFC4880. Currently, the default is RFC4880. However, once support for RFC9580 is rolled out further, the default will change in a future version of sq.
The default can be changed in the configuration file using the setting ākey.generate.profileā.
[default: rfc4880 ]
[possible values: rfc9580 , rfc4880 ]
--rev-cert = FILE
Write the emergency revocation certificate to FILE
When the key is stored on the key store, the revocation certificate is stored in $HOME/.local/share/sequoia/revocation-certificates by default.
When ā--outputā is specified, the revocation certificate is written to the file specified by ā--rev-certā.
If ā--outputā is ā-ā, then this option must not also be ā-ā.
--shared-key
Mark the key as a shared key
The newly generated key with all of its user IDs will be marked as authenticated, but not as a trusted introducer. Further, the key metadata will indicate that this is a shared key.
Use this option if you plan to share this key with other people. Normally, you shouldnāt share keys material. An example of where you might want to do this is a shared mailbox.
--userid = USERID
Add a user ID to the key
This user ID can combine name and email address, can optionally contain a comment, or even be free-form if ā--allow-non-canonical-useridsā is given. However, user IDs that include different information such as name and email address are more difficult to reason about, so using distinct user IDs for name and email address is preferred nowadays.
In doubt, prefer ā--nameā and ā--emailā.
--without-password
Donāt protect the secret key material with a password
Global options
See sq (1) for a description of the global options.
EXAMPLES
Generate a key, and save it on the key store.
sq key generate --own-key --name Alice --email \
alice@example.org
Generate a key, and save it in a file instead of in the key store.
sq key generate --own-key --name Alice --email \
alice@example.org --output
alice-priv.pgp --rev-cert \
alice-priv.rev
SEE ALSO
sq (1), sq-key (1).
For the full documentation see <https://book.sequoia-pgp.org/>.
VERSION
1.3.1