Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-17-2007, 04:56 PM
|
#1
|
Member
Registered: Apr 2005
Location: perugia
Distribution: ubuntu
Posts: 181
Rep:
|
gpg can't create same key on different machine!
problem solved
Last edited by rino.caldelli; 09-10-2008 at 05:42 AM.
Reason: showed personal email-password details
|
|
|
04-17-2007, 05:41 PM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep: 
|
That's deliberate and it should also be different even if you deleted ~/.gnupg and re-generated your keys on the same box. gpg uses your random number generator during the key generation.
Copying over your .gnupg directory is fine - just make sure the permissions are correct and that you don't let someone else access its data.
|
|
|
04-17-2007, 05:44 PM
|
#3
|
Senior Member
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692
Rep:
|
because "name, email, and note" are not the only things used to generate the key pair. gpg would be pointless if i could generate _your_ private key just by knowning your name,email address, and your favorite phrase.
|
|
|
04-17-2007, 05:49 PM
|
#4
|
Senior Member
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761
Rep:
|
Quote:
why are they different...?
|
It's called "entropy" and /dev/random
|
|
|
04-17-2007, 06:34 PM
|
#5
|
Member
Registered: Feb 2007
Posts: 135
Rep:
|
Quote:
Originally Posted by rinonapo
why are they different even if they are created with identical "name" "password" and "note"???
I did a workaround by copying .gnupg directory in both computers..is it a good thing or not?
thanks...
|
If you want to use one keypair to sign/verify/encrypt/decrypt messages/files on two different computers, copying it over is the only way to accomplish this. If you want to send messages between the two computers, you can just use two keys.
|
|
|
04-19-2007, 11:22 AM
|
#6
|
Member
Registered: Apr 2005
Location: perugia
Distribution: ubuntu
Posts: 181
Original Poster
Rep:
|
Quote:
Originally Posted by rshaw
because "name, email, and note" are not the only things used to generate the key pair. gpg would be pointless if i could generate _your_ private key just by knowning your name,email address, and your favorite phrase.
|
Hmm I think you miss one point here: you also have to insert a password to create the keypair.. so it seemed to me logical you had to be able to create the same keypair by entering the same information (password included!)..
Anyone can tell me the use of not permitting the recreation "by hand" of a keypair and making it instead random by using /dev/random ????
Quote:
Originally Posted by nmh+linuxquestions.o
If you want to use one keypair to sign/verify/encrypt/decrypt messages/files on two different computers, copying it over is the only way to accomplish this. If you want to send messages between the two computers, you can just use two keys.
|
Hmmm that's what I wanted to hear.. so the only way to encrypt all your stuff for the future time is bringing along a folder with your public and private keys...if you lose it even knowing you name comment email and password is not sufficient..right?
but what do you mean by "keep your private key safe"? even if someone stole it he ought to get to know the password to cheat me..right???
|
|
|
04-19-2007, 10:03 PM
|
#7
|
Senior Member
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761
Rep:
|
Quote:
... even if someone stole it he ought to get to know the password to cheat me..right???
|
That's why you keep your passphrase in your head and not on paper. If your passphrase get's compromised you should revoke your public key.
http://wiki.openskills.net/OpenSkill...Key+Revocation
|
|
|
04-20-2007, 12:55 AM
|
#8
|
Member
Registered: Feb 2007
Posts: 135
Rep:
|
passwords and keys
Quote:
Originally Posted by rinonapo
Hmm I think you miss one point here: you also have to insert a password to create the keypair.. so it seemed to me logical you had to be able to create the same keypair by entering the same information (password included!)..
Anyone can tell me the use of not permitting the recreation "by hand" of a keypair and making it instead random by using /dev/random ????
|
You might try searching for more information, but I think the short of it is that there is no password for certificates, or keypairs. They are just a bunch of bits. Many people choose to encrypt the private key so that if someone else gets ahold of it, there is another layer of defense.
Last edited by nmh+linuxquestions.o; 04-20-2007 at 12:59 AM.
|
|
|
All times are GMT -5. The time now is 06:55 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|