-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcf-keycrypt.1
62 lines (59 loc) · 1.86 KB
/
cf-keycrypt.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
.\" Hey, EMACS: -*- nroff -*-
.\" (C) Copyright 2014 Michal Svamberg <[email protected]>,
.\"
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH CF-KEYCRYPT 1 "November 7, 2014"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
cf-keycrypt \- Use CFEngine cryptographic keys to encrypt and decrypt files
.SH SYNOPSIS
.B cf-keycrypt
[-e public-key|-d private-key|-H hostname-or-ip] -o outfile -i infile [-h]
.SH DESCRIPTION
Use CFEngine cryptographic keys to encrypt and decrypt files, eg. files containing passwords or certificates.
.PP
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
.\" respectively.
.SH OPTIONS
.TP
.B \-e
Encrypt with key.
.TP
.B \-d
Decrypt with key.
.TP
.B \-i
File to encrypt/decrypt. '-' reads from stdin.
.TP
.B \-o
File to write encrypted/decrypted contents to. '-' writes to stdout.
.TP
.B \-H
Hostname/IP to encrypt for, gets data from lastseen database.
.TP
.B \-h
Show summary of options.
.SH EXAMPLES
.B 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
.B 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
.SH SEE ALSO
.BR cf-key (8),
.br