I have a gpg keypair (2048 RSA) in binary file: a.pub and a.sec, now I want to convert it to text format, how to do that?
Asked
Active
Viewed 2.3k times
2 Answers
17
To convert the keys without importing them:
To wrap a file in PGP ASCII armor, type:
$ gpg --enarmor < filename.bin > filename.txtTo unwrap a file already in PGP ASCII armor, type:
$ gpg --dearmor < filename.txt > filename.bin
http://www.linuxjournal.com/article/8732 (thanks to @nik)
isaaclw
- 281
6
For a text/ASCII dump (armored output) of the public key, 'gpg --export -a'.
Read up GnuPG for more.
Also see, Linux Journal GnuPG Hacks.
nik
- 56,306