summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2013-01-18 15:22:54 -0500
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2013-01-18 15:22:54 -0500
commitcd03ac0a10a43efa3ebf4a8d48a759e26f2e0f0a (patch)
tree526b1adf116ed2e8ea88b969711521471d0ab7f5 /man
parent8fe76e1bb054e843aa57715d01ab629953eaa419 (diff)
enable openpgp2pem as well from keytrans
Diffstat (limited to 'man')
-rw-r--r--man/man1/openpgp2ssh.110
1 files changed, 7 insertions, 3 deletions
diff --git a/man/man1/openpgp2ssh.1 b/man/man1/openpgp2ssh.1
index 304a442..6ac8f92 100644
--- a/man/man1/openpgp2ssh.1
+++ b/man/man1/openpgp2ssh.1
@@ -1,5 +1,5 @@
.\" -*- nroff -*-
-.Dd $Mdocdate: March 1, 2009 $
+.Dd $Mdocdate: January 18, 2013 $
.Dt OPENPGP2SSH 1
.Os
.Sh NAME
@@ -10,12 +10,14 @@ openpgp2ssh
.Pp
.Nm gpg \-\-export $KEYID | openpgp2ssh $KEYID
.Pp
+.Nm gpg \-\-export $KEYID | openpgp2pem $KEYID
+.Pp
.Nm gpg \-\-export\-secret\-key $KEYID | openpgp2ssh $KEYID
.Sh DESCRIPTION
.Nm
takes an OpenPGP-formatted primary key and associated
subkeys on standard input, and spits out the requested equivalent
-SSH-style key on standard output.
+SSH-style (or PEM-encoded) key on standard output.
.Pp
If the data on standard input contains no subkeys, you can invoke
.Nm
@@ -31,7 +33,9 @@ ID.
If the input contains an OpenPGP RSA public key, it will be converted
to the OpenSSH-style single-line keystring, prefixed with the key type
(`ssh\-rsa'). This format is suitable (with minor alterations) for
-insertion into known_hosts files and authorized_keys files.
+insertion into known_hosts files and authorized_keys files. If
+invoked as `openpgp2pem', a PEM-encoded public key will be emitted
+instead.
.Pp
If the input contains an OpenPGP RSA secret key, it will be converted
to the equivalent PEM-encoded private key.