cd79b6ccc5593dd191aa66f09d4a639d4f9f2768
[monkeysphere.git] / man / man1 / openpgp2ssh.1
1 .\"  -*- nroff -*-
2 .Dd $Mdocdate: June 11, 2008 $
3 .Dt OPENPGP2SSH 1
4 .Os
5 .Sh NAME
6 openpgp2ssh
7 .Nd translate OpenPGP keys to SSH keys
8 .Sh SYNOPSIS
9 .Nm openpgp2ssh < mykey.gpg 
10
11 .Nm gpg --export $KEYID | openpgp2ssh $KEYID
12
13 .Nm gpg --export-secret-key $KEYID | openpgp2ssh $KEYID
14 .Sh DESCRIPTION
15 openpgp2ssh takes OpenPGP-formatted RSA and DSA keys on standard
16 input, and spits out the requested equivalent SSH-style key on
17 standard output.
18
19 If the data on standard input contains only a single key, you can
20 invoke openpgp2ssh without arguments.  If the data on standard input
21 contains multiple keys (e.g. a primary key and associated subkeys),
22 you must specify a specific OpenPGP keyid (e.g. CCD2ED94D21739E9) or
23 fingerprint as the first argument to indicate which key to export.
24 The keyid must be at least 8 hex characters.
25
26 If the input contains an OpenPGP RSA or DSA public key, it will be
27 converted to the OpenSSH-style single-line keystring, prefixed with
28 the key type.  This format is suitable (with minor alterations) for
29 insertion into known_hosts files and authorized_keys files.
30
31 If the input contains an OpenPGP RSA or DSA secret key, it will be
32 converted to the equivalent PEM-encoded private key.
33
34 Note that the output keys from this process are stripped of all
35 identifying information, including certifications, self-signatures,
36 etc.
37
38 openpgp2ssh is part of the
39 .Xr monkeysphere 1
40 framework for providing a PKI for SSH.
41 .Sh EXAMPLES
42 .Nm gpg --export-secret-key $KEYID | openpgp2ssh $KEYID | ssh-add -c /dev/stdin
43
44 This pushes the secret key into the active
45 .Xr ssh-agent 1 . 
46 Tools (such as 
47 .Xr ssh 1 )
48 which know how to talk to the 
49 .Xr ssh-agent 1
50 can now rely on the key.
51 .Sh AUTHOR
52 openpgp2ssh and this man page were written by Daniel Kahn Gillmor
53 <dkg@fifthhorseman.net>.
54 .Sh BUGS
55 openpgp2ssh currently only exports into formats used by the OpenSSH.
56 It should support other key output formats, such as those used by
57 lsh(1) and putty(1).
58
59 Secret key output is currently not passphrase-protected.
60
61 This program is not yet implemented, and this man page currently only
62 describes expected functionality.
63 .Sh SEE ALSO
64 .Xr monkeysphere 1 , 
65 .Xr monkeysphere-admin 8