Linux - SoftwareThis 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.
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.
pub 1024D/3BFB3F5F 2005-12-04
uid Gunnar Johansson <info@gunnar-johansson.se>
sub 4096g/6DEDFD24 2005-12-04
[root@c83-250-110-112 nissanka]#
It seems that I don't have to bother about the location of the downloaded key. I could just go ahead with the 'import' command to attach to the key ring.
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
[root@c83-250-110-112 nissanka]# gpg --fingerprint 3BFB3F5F
pub 1024D/3BFB3F5F 2005-12-04
Key fingerprint = 383E F0E4 3D64 41FB 9E34 F377 6215 2549 3BFB 3F5F
uid Gunnar Johansson <info@gunnar-johansson.se>
sub 4096g/6DEDFD24 2005-12-04
[root@c83-250-110-112 nissanka]# gpg --import 3BFB3F5F
gpg: can't open `3BFB3F5F': No such file or directory
gpg: Total number processed: 0
[root@c83-250-110-112 nissanka]#
Why is the reason for failure of import command ?
I believe this import command is the one you use to attach the downloaded keys to your ringg
[root@c83-250-110-112 nissanka]# gpg --fingerprint 3BFB3F5F
pub 1024D/3BFB3F5F 2005-12-04
Key fingerprint = 383E F0E4 3D64 41FB 9E34 F377 6215 2549 3BFB 3F5F
uid Gunnar Johansson <info@gunnar-johansson.se>
sub 4096g/6DEDFD24 2005-12-04
[root@c83-250-110-112 nissanka]# gpg --import 3BFB3F5F
gpg: can't open `3BFB3F5F': No such file or directory
gpg: Total number processed: 0
[root@c83-250-110-112 nissanka]#
Why is the reason for failure of import command ?
I believe this import command is the one you use to attach the downloaded keys to your ringg
Your welcome the --import I show above is for the Public Key block that has been exported/saved to a file, you would be importing the file.???.
Happy Tux
I don't understand what you are trying tell me here. What is the error?
Ok when you are using the import command that is used with a file like gpg --import file.asc this file needs to have been saved to your hard disk so you are importing it directly into the key ring. The proper command for your error above would be the already used gpg --keyserver pgp.mit.edu --recv-keys 3BFB3F5F that downloads then imports from a keyserver. So to use the gpg --import file.asc you would have to instead of using a keyserver to get the key, downloaded the file.asc (which the person owning the key used the gpg --export key_id file.asc then posted for download) from a webpage and saved it to your hard disk then import. Hopefully this clears up the confusion.
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
Thanks Happy Tux for all your effort to help me.
To be candid, this is still confused.
1] Are you telling me that I downloaded the wrong file?
2] Do you want me to go the server and download the correct file again?
3] Do you want me to download the file which has the .asc at the end?
4] If you want me to download a file which has .asc at the end, what is the command?
I would like to hear from you again.
--------------------------------------------------------------------------
[**] I could save the following binary file. How do I save? I can copy it to the Open Office wordprocessor and save. I can use the 'vi' editor and save. What should be the name of the file? It seems it should be an .asc file. Please tell me.
The following is this particular public key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: PGP Key Server 0.9.6
So our friend Tinkster made a mistake by suggesting some 'hpk' to precede with the downloading server's address.This is a tall order. I mean not everybody knows pros cons of gpg.
Code:
$ gpg --keyserver hkp://pgp.mit.edu --recv-keys 3BFB3F5F
gpg: WARNING: using insecure memory!
gpg: please see http://www.gnupg.org/faq.html for more information
gpg: key 3BFB3F5F: public key "Gunnar Johansson <info@gunnar-johansson.se>" imported
gpg: Total number processed: 1
gpg: imported: 1
Thanks Happy Tux for all your effort to help me.
To be candid, this is still confused.
1] Are you telling me that I downloaded the wrong file?
2] Do you want me to go the server and download the correct file again?
No with the gpg --keysever command you got the public key you wanted imported into your keyring there is nothing else to do.
Quote:
3] Do you want me to download the file which has the .asc at the end?
No if you did do that for another key then that is not available on a keyserver but which has a posted .asc file you would use the already mentioned gpg --import file.asc to put it into your keyring.
Quote:
4] If you want me to download a file which has .asc at the end, what is the command?
I would like to hear from you again.
--------------------------------------------------------------------------
If you were on a webpage then a right click and use the save as option, if for instance you wanted to do it from the command line then in the case of my public key you could use.
Which would use wget to download my public key into the current directory then if you wanted to put my key into your keyring
Code:
gpg --import publickey.asc
Would import my key.
Quote:
[**] I could save the following binary file. How do I save? I can copy it to the Open Office wordprocessor and save. I can use the 'vi' editor and save. What should be the name of the file? It seems it should be an .asc file. Please tell me.
Any editor should work the file extension/name does not matter gpg will recognize it as a signature when the --import was done but the .asc is the commonly used extension so people can see that it is supposed to be a gpg signature.
Now I know the import command should work. So tried it and it worked.
[root@c83-250-110-112 nissanka]# gpg --import gunnar1.asc
gpg: key 3BFB3F5F: "Gunnar Johansson <info@gunnar-johansson.se>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
[root@c83-250-110-112 nissanka]#
Is signing of the key a necessary step?
The signing of a key should not be done unless you have personally verified the persons identity eg. by meeting them in person and seeing some form of official identification or you know someone who you have the same level of trust with and they have personally verified the information. A key in your keyring that is unsigned by you just remains as an untrusted key there is no harm in it you can still use it for sending encrypted communications to that person with their key.
I know the commad to armour the key. Is it necessary? I guess you don't have to do it if you just send to a public key server. Because anyone could go to a public key server and collect the key.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.