Cannot import keys
Continuing the previous discussion here... http://support.gpgtools.org/discussions/everything/1638-public-key-...
I am still not able to import any keys. I tried the nightly
build and am running the most recent version of GPG tools. I tried
importing the key someone else presented in that discussion
(https://www.torproject.org/dist/torbrowser/osx/TorBrowser-2.2.37-2-...)
and many other keys but I am still getting the code = 0 error every
time. Any help would be appreciated
Thanks,
James
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac
Support Staff 1 Posted by Steve on 28 Aug, 2012 10:59 PM
Hey James, thanks. The previous discussion was becoming a bit inoperable.
The file you posted a link to is actually a signature. Signatures are created by using the sec key and may be verified if you have the according pub key.
You need the actual pub key (either from the key servers or in text form).
That would start with:
-----BEGIN PGP PUBLIC KEY BLOCK-----
And you should then also be able to import the key correctly.
Also when I tried importing the signature you linked to, I don't get an error but the invalid command sound from OS X.
Could you try to see, if that is the same for you with the latest nightly of GPGServices: https://nightly.gpgtools.org
All the best,
steve
2 Posted by Drew on 31 Aug, 2012 03:45 AM
I am using Macbook Pro with OSX 10.6.8 and cannot import keys. I have uninstalled and reinstalled the latest GPG tools many times (the latest being today) but I still get error code = 0 when trying to import a key from text edit. I've just checked again and the desktop icon for GPG - get info - says created,modified,last opened March 2012. I uninstalled it before downloading and installing today...
Support Staff 3 Posted by Steve on 31 Aug, 2012 06:31 AM
@James Were you able to resolve your problem by trying the latest nightly?
@Drew This is a known problem with the latest official release. Please give the nightly GPGTools Installer a try. Find it here: https://nightly.gpgtools.org
We'll make a new release of GPG Keychain Access in the upcoming weeks so the main download will contain all the latest fixes as well.
Hope this helps :)
steve
4 Posted by Drew on 31 Aug, 2012 10:50 AM
There are seven separate downloads there, which one(s) is relevant?
I tried the 'GPG services lates 1.4meg' which stated it was a patch. Problem still there... I will restart system and try again.
Do I need to uninstall my existing PGP and install one of the seven nightly's?
5 Posted by Greg on 31 Aug, 2012 09:44 PM
I am having the exact same problem. I cannot import a public key from any text based documents or emails from colleagues that send their public keys. I am running:
- GPG Version 1.0b7 (1.0b7) - Mac OSX 10.7.4
I am constantly getting an error: Import Failed! Code = 0
Also the "latest" nightly build is dated August 18, 2012. Hardly the latest.
Better clarity on this issue would be appreciated.
Support Staff 6 Posted by Steve on 01 Sep, 2012 05:23 PM
@Drew: Just select the GPGTools Installer. It's called " GPGTools_Installer-latest.dmg 20-Aug-2012 21:41 23M Untested nightly build" and contains all the latest code tweaks. Your problem is GPG Keychain Access related. Please run the installer with all the tools contained and then try again.
@Greg: August 18th nightly version of GPG Keychain Access is indeed the latest available. We don't work on every single software on a daily basis. That is what new versions might not appear every night and then three updates on one day might happen.
If you use GPG Keychain Access 1.0b7 you are not running the latest nightly.
Please test the latest nightly (best to run the GPGTools installer) and then let us know if your problem is solved.
Hope this helps,
steve
7 Posted by drewapl@gmail.c... on 02 Sep, 2012 10:31 PM
HI Steve, yes have tried that several times. Checked my version of Keychain (it is Version 1.0b8 (110728 (b8))
I am able to import keys from the server but not from text or emails (as is Greg's problem above). I have received public keys in text form, copied and pasted into Textedit and saved on my desktop in RTF. I understand this folder can be dragged into the Keychain access window to import the key, also I should be able to select in Textedit, right click and "import key". Is this correct? Result is always error code = 0
All the Services keyboard shortcuts are in place.
8 Posted by Greg on 03 Sep, 2012 04:29 AM
Hi Steve,
Thank you for the clarification. I have updated to the latest version/nightly build now and, unfortunately, I am receiving the same error code when I attempt to import keys whether it be copy paste, etc.
I have also tried the method which Drew has been trying as well. It's been unsuccessful so far.
9 Posted by James on 04 Sep, 2012 03:18 AM
Steve,
I have also updated to the most recent nightly build and unfortunately I am still receiving the same code=0 error when attempting to import a key from textedit. I have attached a .rtf file containing a public key but I get the same error when attempting to import any key.
I appreciate your help in trying to solve this, I'm sure it is frustrating.
10 Posted by drewapl@gmail.c... on 05 Sep, 2012 11:25 AM
update...
small breakthrough, something has spontaneously changed (without any new downloads or updates I can now import some keys from Textedit. Some keys though are still not working - ones which have been tried and tested by other people- and are fully functioning keys.
The new release of Keychain access may be what we all need...
Curious though why there are only three people presenting this problem when this is a 'known problem with the latest release'. What is everyone else doing to overcome this issue?
Support Staff 11 Posted by Steve on 05 Sep, 2012 06:50 PM
Drew, James & Greg,
I think we have finally squashed the bug. It was RTF file related which might explain why it works for Drew with some TextEdit file.
After we had fixed the RTF issue we then had some difficulties with our BuildBot (the bot creating our nightly versions).
Now everything is fixed and once again I'd welcome you all to test the latest nightly. We can already make a ritual out of this. But I'm rather sure that this time it will be the last time we do this ritual.
So here's the latest nightlies of GPGServices or GPGTools Installer.
Looking forward to your feedback and thanks for hanging in on this so long and your patience.
:) steve
12 Posted by Greg on 06 Sep, 2012 02:31 AM
Unfortunately, that didn't work for me. When I select/highlight the public key, select "services" and then "Open PGP: import key from selection" it still receive the "import failed! Code = 0" message.
(This is still an excellent product by the way and I am glad to be using it. Not being able to import a public key when it's given to me, while frustrating, is not that big of a deal to me. I am still very happy with your product.)
Maybe I'm not running the most recent nightly build? Is it version 1.0b8 (111107 (b8))? I downloaded it and thought I installed it. If this is not the most recent version please let me know and I will uninstall it and reinstall it.
Thanks again for any help!
Support Staff 13 Posted by Steve on 06 Sep, 2012 06:11 AM
Greg, sorry this is still not solved. Could you please attach the pub key in question, so we can test this?
The issue we fixed was with RTF files and GPG Keychain Access. Since you have the latest version of that containing the fix and write about right-clicking and GPGServices I assume you might experience another issue but this time with GPGServices. I'd still be interested if others using Textfiles (or RTF) to import keys were now able to do so.
Greg, as soon as we have the pub key in question, we'll look at that and see what's going wrong with GPGServices and the import option.
14 Posted by Grant on 06 Sep, 2012 08:56 PM
OS 10.7.4
Installed, Uninstalled, Reinstalled and downloaded most recent nightly fixes. Attempting to import an encrypted file. I am not a very sophisticated computer user but I believe I have tried everything in the thread above. If I had a hammer I would hit myself in the head to ease the pain as I continue to receive the message below. I would bet it is something I am doing incorrectly but can you offer any advice?
Thanks.
Import failed!
Code = 0
Error text:
gpg: [don't know]: invalid packet (ctb=7e)
gpg: read_block: read error: Invalid packet
gpg: import from `/dev/fd/5' failed: Invalid keyring
gpg: Total number processed: 0
Support Staff 15 Posted by Luke Le on 06 Sep, 2012 09:05 PM
Hi Grant,
what exactly are you trying to do when you say you're importing an encrypted file?
Do you want to decrypt the file?
Could you please open a new discussion if you're not trying to import keys?
16 Posted by Grant Smith on 06 Sep, 2012 09:15 PM
This comment was split into a new discussion: Error when trying to decrypt file with GPG Keychain Access
Hi Luke,
I am surprised to hear form you as I did not believe my efforts to post
were successful. Perhaps it is just a bad day but I was getting an error
message when I attempted to reply to the posts also. In response to your
question I have downloaded an encrypted file from a server that I had
previously sent my key to. When I attempt to import/decrypt the file I
receive the following message:
Import failed!
Code = 0
Error text:
gpg: [don't know]: invalid packet (ctb=7e)
gpg: read_block: read error: Invalid packet
gpg: import from `/dev/fd/5' failed: Invalid keyring
gpg: Total number processed: 0
Please forgive me if this is on my end and something simple but I could
not find anything in the available documentation.
Thanks for your help
17 Posted by Greg on 07 Sep, 2012 01:24 AM
@Steve: Hi Steve, attached is the text file with the public key which I am trying to import. Thanks! -Greg
18 Posted by Greg on 07 Sep, 2012 01:25 AM
@Steve: Here is the attachment (Sorry didn't go through the first time.)
Support Staff 19 Posted by Steve on 07 Sep, 2012 08:30 PM
Greg, thanks for the example file. The problem with that file is, that it does not contain a valid key block.
"-----"
is missing in the beginning. That's why GPG Keychain Access fails to recognize the file.
All the best,
steve
20 Posted by Greg on 10 Sep, 2012 03:58 PM
Steve,
Thank you so much for your work on this and noting the missing info; I never would have guessed that!
As I mentioned before, excellent product! I certainly recommend it to my colleagues when they ask what I use! Take care and thanks again for your diligent support and for making our communications safer!
-Greg
Support Staff 21 Posted by Steve on 10 Sep, 2012 07:32 PM
Hey Greg, glad this could finally be resolved. :)
I think we can close this soon. Any objections? Any keys not being imported?
22 Posted by karola on 21 Sep, 2012 10:36 AM
Hi all,
i am really new on this security issues, I am using OS 10.7.4, and installed the last version of GPG tools.
But I am having troubles importing someone else's public key from a file. I am doing the importation though the application GPG Keychain Access , selecting import browsing the file and so on but the last message while importing this key is:
Count of processed keys: 1
do not know what does it mean and despite of that no key is imported...
could you please tell me what does this line (Count of processed keys: 1) mean? what am i doing wrong ? and how can i import a key from a (xxx.asc ) file?
thanks in advance....
cheers
Karola
Support Staff 23 Posted by Steve on 23 Sep, 2012 10:51 AM
Hey Karola, please try the following.
Download and Install the latest nightly of the GPGTools Installer from our nightly page: https://nightly.gpgtools.org
Should you still encounter problems after that, please open a new discussion so we can further investigate what the problem is on your system.
This thread here is getting a bit out of hand so I'm closing it. Just open a new discussion should your problems persist.
Best :)
steve
Steve closed this discussion on 23 Sep, 2012 10:51 AM.