cli.sgit.ai / Command reference / sgit pki

sgit pki

PKI key management and encryption.

Generated from sgit help all --format json, sgit-ai v0.23.0. 10 subcommands below. To change this page, change the command's register() in the CLI and regenerate.

sgit pki

Subcommands

sgit pki contacts

List imported contacts

sgit pki contacts

sgit pki decrypt

Decrypt a file with local key

sgit pki decrypt [options] <file>
ArgumentWhat it is
filerequiredEncrypted file (.enc)
OptionWhat it does
--fingerprintYour encryption key fingerprint
--output, -oOutput file, or - for stdout (default: FILE without .enc)

sgit pki delete

Delete key pair

sgit pki delete <fingerprint>
ArgumentWhat it is
fingerprintrequiredEncryption key fingerprint

sgit pki encrypt

Encrypt a file for a recipient

sgit pki encrypt [options] <file>
ArgumentWhat it is
filerequiredFile to encrypt
OptionWhat it does
--fingerprintYour key fingerprint (for signing)
--output, -oOutput file (default: FILE.enc)
--recipientRecipient fingerprint (a contact or one of your key pairs)

sgit pki export

Export public key bundle (JSON)

sgit pki export <fingerprint>
ArgumentWhat it is
fingerprintrequiredEncryption key fingerprint

sgit pki import

Import contact public key

sgit pki import <file>
ArgumentWhat it is
filerequiredPath to public key bundle JSON (or - for stdin)

sgit pki keygen

Generate encryption + signing key pair

sgit pki keygen [options]
OptionWhat it does
--labelLabel for the key pair

sgit pki list

List local key pairs

sgit pki list

sgit pki sign

Sign a file (detached signature)

sgit pki sign [options] <file>
ArgumentWhat it is
filerequiredFile to sign
OptionWhat it does
--fingerprintSigning key fingerprint

sgit pki verify

Verify a detached signature

sgit pki verify [options] <file> <signature>
ArgumentWhat it is
filerequiredFile to verify
signaturerequiredSignature file (.sig)
OptionWhat it does
--jsonPrint {valid, signing_fingerprint, signer_label, signer_source} as JSON

This page as markdown · its source, admin/content/reference/sgit-cli-reference.json