Gnah, there's a error in the second command. It should read:

gpg2 -a --export-secret-keys $keyid >> key.txt

(Notice the >> key.txt which means "append output to key.txt") 

-- 
Moritz Ulrich

GnuPG: 0x59B34B61



Am Donnerstag, 8. September 2011 um 21:20 schrieb Moritz Ulrich:

> There is a function to get the *public* key of a given key in GPGServices 
> (Open an empty text file, right click and choose "Services -> Insert Public 
> Key". However, we don't have a function to get the private key for security 
> reasons.
> 
> You can export both keys using the following commands ($keyid is the id of 
> the key you want to export):
> 
> gpg2 -a --export $keyid > key.txt # writes public key to key.txt
> gpg2 -a --export-secret-keys $keyid # appends secret key to key.txt
> 
> Cheers,
> Moritz
> 
> 
> -- 
> Moritz Ulrich
> 
> GnuPG: 0x59B34B61
> 
> 
> 
> Am Donnerstag, 8. September 2011 um 21:14 schrieb Bruce Gordon:
> 
> > I have a set of GPG Keys in on my Keychain. what I would like to know is:
> > 
> > Is there an ASCII (armor) Export function in GPGTools that allows for ascii 
> > versions of 
> > both Keys (Public and Private) to be exported and then sent via another 
> > medium in ASCII format?
> > If so where is it, and is there an instruction set that covers this?
> > 
> > 
> > Thank you for your time, and look forward to the answer....
> > 
> >  Bruce (semiretired powderman & exFCC Field Inspector for Southeastern 
> > Alaska)
> > 
> >  Bruce Gordon * Debora Gordon R.N. Bruce's Trading Post
> >  P.O. Box EXI Excursion Inlet South
> >  Juneau, Alaska 99850 Excursion Inlet, Alaska 99850
> >  AL7AQ * KL7WJ www.btpost.net (http://www.btpost.net) www.99850.net 
> > (http://www.99850.net)
> > 
> > _______________________________________________
> > gpgtools-users mailing list
> > [email protected] (mailto:[email protected])
> > FAQ: http://www.gpgtools.org/faq.html
> > Changes: http://lists.gpgtools.org/mailman/listinfo/gpgtools-users
> > Unsubscribe: 
> > http://lists.gpgtools.org/mailman/options/gpgtools-users/[email protected]?unsub=Unsubscribe&unsubconfirm=1
> > 
> > This email sent to: [email protected] 
> > (mailto:[email protected])
> 

_______________________________________________
gpgtools-users mailing list
[email protected]
FAQ: http://www.gpgtools.org/faq.html
Changes: http://lists.gpgtools.org/mailman/listinfo/gpgtools-users
Unsubscribe: 
http://lists.gpgtools.org/mailman/options/gpgtools-users/[email protected]?unsub=Unsubscribe&unsubconfirm=1

This email sent to: [email protected]

Reply via email to