summaryrefslogtreecommitdiff
path: root/man/man1
diff options
context:
space:
mode:
Diffstat (limited to 'man/man1')
-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.