Use pre-existing GPG key

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.

Use pre-existing GPG key

Postby debianuser » Wed Mar 07, 2012 3:24 am

Does Retroshare support importing and using a pre-existing GPG keypair as the primary user keys, or must I generate a new keypair just for RS?
debianuser
 
Posts: 2
Joined: Wed Mar 07, 2012 3:19 am

Re: Use pre-existing GPG key

Postby Imanuel » Wed Mar 07, 2012 8:39 am

You can use an existing keypair, as long as:
- The Key is self-signed
- The Key is ultimately trusted
- There also is an issue with subkeys as far as I remember

Just select the key when you are creating a profile. ;-)
Imanuel
 
Posts: 33
Joined: Fri Jun 03, 2011 7:17 am

Re: Use pre-existing GPG key

Postby Garryck » Fri Nov 16, 2012 8:42 am

Does RetroShare support 4096-bit keypairs? My key fits the above criteria, but RS insists it's not valid. The only thing I can think of is that it's 4096 bit, rather than the usual 2048 bit.
Garryck
 
Posts: 1
Joined: Fri Nov 16, 2012 8:38 am

Re: Use pre-existing GPG key

Postby Distro » Fri Nov 16, 2012 3:35 pm

DSA/ElGamal keys aren’t supported.
Distro
 
Posts: 303
Joined: Sun Sep 04, 2011 7:33 pm

Re: Use pre-existing GPG key

Postby csoler » Sat Nov 17, 2012 11:02 pm

The trust level is not a limitation anymore, now that we're no longer using gpgme.
4096bits keys should work. I see no reason they should not.

The self signature is necessary.

The key should not have subkeys, since subkeys are not supported by openpgp-sdk. That's also why we can't support DSA/Elgamal for now.
csoler
 
Posts: 319
Joined: Tue Oct 28, 2008 10:33 am

Re: Use pre-existing GPG key

Postby heini » Sun Feb 02, 2014 8:52 am

Hi,

just started using RS and would also like to re-use my existing GPG keypair. It's 4096 bit RSA without subkeys, self-signed and ultimately trusted. I exported it to an ASCII armored file using
Code: Select all
gpg2 --export -a <KeyID> >mygpgkey.asc
but when I try to import it, I get the following error:

PGPHandler::importKeyPair(): file does not contain a valid keypair.

This is on Ubuntu 13.10 and RS package version is 0.5.5-0.7068~saucy.

Any idea what I'm doing wrong?

Bye...

Dirk
heini
 
Posts: 59
Joined: Sun Feb 02, 2014 8:37 am

Re: Use pre-existing GPG key

Postby heini » Fri Feb 07, 2014 6:08 am

OK, got it. I needed to export both the secret and the public key to the same file, like:

Code: Select all
gpg2 --export-secret-keys -a <KeyID> >mynewkey.asc
gpg2 --export -a <KeyID> >>mynewkey.asc


Hope this helps anybody who runs into the same problem. Maybe this should go into the FAQ?

Bye...

Dirk
heini
 
Posts: 59
Joined: Sun Feb 02, 2014 8:37 am

Re: Use pre-existing GPG key

Postby zetaz » Sat Mar 22, 2014 1:41 pm

where can i found Windows software able to generate a good 4096 keypair that can be used with retroshare ?
Thank you
zetaz
 
Posts: 4
Joined: Sun Mar 16, 2014 6:43 pm

Re: Use pre-existing GPG key

Postby heini » Sun Mar 23, 2014 8:10 am

zetaz wrote:where can i found Windows software able to generate a good 4096 keypair that can be used with retroshare ?

http://www.gpg4win.org/

HTH...

Dirk
heini
 
Posts: 59
Joined: Sun Feb 02, 2014 8:37 am

Re: Use pre-existing GPG key

Postby zetaz » Sun Mar 23, 2014 12:57 pm

heini wrote:
zetaz wrote:where can i found Windows software able to generate a good 4096 keypair that can be used with retroshare ?

http://www.gpg4win.org/

HTH...

Dirk


Thank you Dirk, but i try it and it don't work
The asc key i generate with pgp4win is not reconised by retroshare "PGPHandler::importKeyPair(): file does not contain a valid keypair...
and idea ?
thank you
zetaz
 
Posts: 4
Joined: Sun Mar 16, 2014 6:43 pm

Next

Return to General RetroShare discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron