10.7.5.: Import key failed

mvooo's Avatar

mvooo

17 Aug, 2013 06:25 AM

Which of our tools is giving you problems?

GPG Keychain Access 1.1.2

Keyserver: hkps.pool.sks-keyservers.net

What version of OS X are you using?

10.7.5

Please describe your problem. Add as much detail as possible.

I received the following error when trying to import a file with the extension .csv.pgp

Import failed!
Code = 0
Error text:
gpg: [don't know]: invalid packet (ctb=57)
gpg: read_block: read error: Invalid packet
gpg: import from `/dev/fd/5' failed: Invalid keyring
gpg: Total number processed: 0

Please describe what you did expect instead

I am new to this. I am not sure what I should expect.

If you remember, please describe the steps leading up to the problem

1) Create key pair
2) Send .ASC file to colleague to encrypt files
3) Colleague sends me files to decrypt (the .csv.pgp files)
4) I try to import the files
5) I receive the error message
6) I am bummed out

  1. Support Staff 1 Posted by Steve on 17 Aug, 2013 03:44 PM

    Steve's Avatar

    Hi mvooo,

    where did you find that key server? Was that included in the default list in GPG Keychain Access? It shouldn't since we still need to tweak a couple of things for hkps support.

    We've a ticket for this problem:

    https://gpgtools.lighthouseapp.com/projects/65684/tickets/151-add-h...

    Besides that: what do you mean by "import files"? You mean decrypt? If so, what steps are you taking to get that done?

    Best, steve

  2. 2 Posted by mvooo on 18 Aug, 2013 02:59 AM

    mvooo's Avatar

    Hi there,
    It was in the default list, and I also tried the default server (whatever was there when I installed it) - neither worked.

    Here's the other ones I tried: hkp://keyserver.linux.it, hkp://pool.sks-keyservers.net

    I am new to encryption. I clicked import and selected the csv.pgp file. Does that mean I was decrypting?

    Thanks!

  3. 3 Posted by mvooo on 20 Aug, 2013 07:48 AM

    mvooo's Avatar

    Any ideas here?

  4. Support Staff 4 Posted by Luke Le on 20 Aug, 2013 11:52 AM

    Luke Le's Avatar

    Hi,

    GPG Keychain Access is the application to manage all your gpg keys.
    To decrypt a file however, you'd simply right-click on it, choose Services -> OpenPGP: Decrypt file and should be fine.

    Hope that helps.

  5. 5 Posted by Axel Essbaum on 03 Sep, 2013 04:39 PM

    Axel Essbaum's Avatar

    Mac OSX 10.8.4, GPG Keychain Access 1.1.2 (507).

    I have the following two lines in my gpg.conf which I got from http://sks-keyservers.net/overview-of-pools.php

    keyserver hkps://hkps.pool.sks-keyservers.net
    keyserver-options ca-cert-file=/path/to/CA/sks-keyservers.netCA.pem

    When I try to search for a key in GPG Keychain Access I get:

    Search keys failed!
    Code = 0

    Error text:
    gpg: searching for "<email address>" from hkps server hkps.pool.sks-keyservers.net
    gpg: key "<email address>" not found on keyserver
    gpg: keyserver internal error
    gpg: keyserver search failed: Keyserver error

    A friend with a Windows-based GPG setup has no trouble finding the key.

    When I try to search from Terminal I get:

    % gpg --version
    gpg (GnuPG/MacGPG2) 2.0.20
    libgcrypt 1.5.3
    Copyright (C) 2013 Free Software Foundation, Inc.
    % gpg --search-keys <email address>
    gpg: searching for "<email address>" from hkps server hkps.pool.sks-keyservers.net
    gpgkeys: HTTP search error 77: error setting certificate verify locations:
      CAfile: /path/to/CA/sks-keyservers.netCA.pem
      CApath: none

    gpg: key "<email address>" not found on keyserver
    gpg: keyserver internal error
    gpg: keyserver search failed: Keyserver error

    Am I doing something wrong? Should this work?

  6. Support Staff 6 Posted by Luke Le on 12 Sep, 2013 01:44 PM

    Luke Le's Avatar

    Hi Axel,

    you have to fix the path to the sks-keyservers CA file.
    You can download the file at https://sks-keyservers.net/sks-keyservers.netCA.pem

    Copy that to some path and adjust the path in your keyserver-options ca-vert-file accordingly.

  7. 7 Posted by Axel Essbaum on 12 Sep, 2013 04:38 PM

    Axel Essbaum's Avatar

    That did it - thanks!!!

  8. Support Staff 8 Posted by Luke Le on 12 Sep, 2013 04:39 PM

    Luke Le's Avatar

    Perfect, always happy to help!

    Closing this discussion. Feel free to open a new one anytime should you have questions or run into a problem.

  9. Luke Le closed this discussion on 12 Sep, 2013 04:39 PM.

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