CF-KEYCRYPT(1)

NAME
cf-keycrypt - Use CFEngine cryptographic keys to encrypt and decrypt files

SYNOPSIS
cf-keycrypt [-e public-key|-d private-key|-H hostname-or-ip] -o outfile -i infile [-h]

DESCRIPTION
Use CFEngine cryptographic keys to encrypt and decrypt files, eg. files containing passwords or certificates.

OPTIONS

-e  Encrypt with key.

-d  Decrypt with key.

-i  File to encrypt/decrypt. '-' reads from stdin.

-o  File to write encrypted/decrypted contents to. '-' writes to stdout.

-H  Hostname/IP to encrypt for, gets data from lastseen database.

-h  Show summary of options.

EXAMPLES
Encrypt myplain.dat to mycrypt.dat by public key localhost.pub: cf-keycrypt -e /var/cfengine/ppkeys/localhost.pub -i myplain.dat -o mycrypt.dat Decrypt mycrypt.dat to myplain.dat by private key localhost.priv: cf-keycrypt -d /var/cfengine/ppkeys/localhost.priv -i mycrypt.dat -o myplain.dat

SEE ALSO
cf-key(8),