2 .Dd $Mdocdate: June 11, 2008 $
7 .Nd translate OpenPGP keys to SSH keys
9 .Nm openpgp2ssh < mykey.gpg
11 .Nm gpg --export $KEYID | openpgp2ssh $KEYID
13 .Nm gpg --export-secret-key $KEYID | openpgp2ssh $KEYID
16 takes an OpenPGP-formatted primary key and associated
17 subkeys on standard input, and spits out the requested equivalent
18 SSH-style key on standard output.
20 If the data on standard input contains no subkeys, you can invoke
22 without arguments. If the data on standard input contains multiple
23 keys (e.g. a primary key and associated subkeys), you must specify a
24 specific OpenPGP key identifier as the first argument to indicate
25 which key to export. The key ID is normally the 40 hex digit OpenPGP
26 fingerprint of the key or subkey desired, but
28 will accept as few as the last 8 digits of the fingerprint as a key
31 If the input contains an OpenPGP RSA public key, it will be converted
32 to the OpenSSH-style single-line keystring, prefixed with the key type
33 (ssh-rsa). This format is suitable (with minor alterations) for
34 insertion into known_hosts files and authorized_keys files.
36 If the input contains an OpenPGP RSA secret key, it will be converted
37 to the equivalent PEM-encoded private key.
42 framework for providing a PKI for SSH.
44 The keys produced by this process are stripped of all identifying
45 information, including certifications, self-signatures, etc. This is
46 intentional, since ssh attaches no inherent significance to these
50 will produce output for any requested RSA key. This means, among
51 other things, that it will happily export revoked keys, unverifiable
52 keys, expired keys, etc. Make sure you do your own key validation
53 before using this tool!
55 .Nm gpg --export-secret-key $KEYID | openpgp2ssh $KEYID | ssh-add -c /dev/stdin
57 This pushes the secret key into the active
61 which know how to talk to the
63 can now rely on the key.
66 and this man page were written by Daniel Kahn Gillmor
67 <dkg@fifthhorseman.net>.
70 only works with RSA keys. DSA keys are the only other key type
71 available in both OpenPGP and SSH, but they are currently unsupported
75 only accepts raw OpenPGP packets on standard input. It does not
76 accept ASCII-armored input.
78 Currently only exports into formats used by the OpenSSH.
79 It should support other key output formats, such as those used by
82 Secret key output is currently not passphrase-protected.
85 currently cannot handle passphrase-protected secret keys on input.
91 .Xr monkeysphere-server 8