Menu

Public key file import fails even on freshly exported key

alexander
2016-06-23
2016-11-07
<< < 1 2 (Page 2 of 2)
  • Patrick Brunschwig

    Well, I know why deleting the lines helped - because the many "verbose" lines changed the behavior of gpg. It made gpg send output that is supposed to be on stdout to stderr.

    But I cannot tell you why the lines were there. Enigmail does not add any lines to gpg.conf.

     
  • alexander

    alexander - 2016-08-15

    So, since the output didn't go to stdout, Enigmail didn't realize the public key as legit, because it reads gpg's stdout for input?

     
  • Patrick Brunschwig

    Only the output of gpg --list-packets didn't go to stdout. But parsing of the list of packets expects the output on stdout, and nowhere else.

     
  • alexander

    alexander - 2016-08-16

    I see, thanks for the explanation and thanks everyone for your patience and your help!

     
  • Włodzimierz Ziółkowski

    I think I've got a similar problem. Before reinstalling my operating system I exported public and private key and now I can't import them as there's a problem with public key. How can I solve that?

     
    • Rob

      Rob - 2016-11-01

      I think I've got a similar problem. Before reinstalling my operating
      system I exported public and private key and now I can't import them as
      there's a problem with public key. How can I solve that?

      The private key contains a copy of the public key -- just import the
      private key and you should get both. :)

       
      • Włodzimierz Ziółkowski

        Thanks. The problem is I've got only one file with my keys. It is supposed to contain both private and public, but import doesn't work. And now I don't know if there is a way to save the situation except to revoking old key and creating new one.

         
  • Patrick Brunschwig

    Please try the latest nightly Enigmail build from
    https://www.enigmail.net/index.php/en/download/nightly-build

     
    • Włodzimierz Ziółkowski

      OK, I was able to import, however now I'm unable to sign/encrypt messages...

       

      Last edit: Włodzimierz Ziółkowski 2016-11-04
      • Włodzimierz Ziółkowski

        I try to import using wizard and using 'regular' way to import keys and both are unsuccessful.

         

        Last edit: Włodzimierz Ziółkowski 2016-11-04
  • Patrick Brunschwig

    To answer your original question "Is it recommended to use nightly builds instead of distribution specific versions?" - No, it's not recommended at all. Nightly builds represent the current development status and may contain bugs and uncompleted features.

    Now that your keys are imported, I recommend you switch back to the release-version of Enigmail. I will release a new version of Enigmail that will fix the key importing issues soon.

     
  • Patrick Brunschwig

    To answer your original question "Is it recommended to use nightly builds instead of distribution specific versions?" - No, it's not recommended at all. Nightly builds represent the current development status and may contain bugs and uncompleted features.

    Now that your keys are imported, I recommend you switch back to the release-version of Enigmail. I will release a new version of Enigmail that will fix the key importing issues soon.

     
    • Włodzimierz Ziółkowski

      Thanks, that finally helped! I'm so glad! :)

       
  • Matthias Hiddemann

    Hello, I faced the same problems when trying to import someone elses public key: "Error - The first OpenPGP-Block is not a public key block".
    I checked for "verbose" in gpg.conf - nothing in.
    I installed nightly build - error message still there.
    Many thanks for any further ideas how to solve.

     
    • Ludwig Hügelschäfer

      If there are no privacy concerns, could you please send me the public key? (ludwig at enigmail dot net)

       
  • Matthias Hiddemann

    Thanks for fast response. Pls find attched the public key.

     
    • Ludwig Hügelschäfer

      Well, this is no public key. It's a message, encrypted for key 9316D00B12E1F9ED. No wonder you cannot import it as a key. You can try to decrypt it, if 9316D00B12E1F9ED is the id of your key pair. You can do that either on the command line:

      gpg --decrypt publickey.pgp
      

      Alternatively you can open it in a text editor, add an empty line on the top, save it, and open it in Thunderbird (File -> Open -> Saved message).

       

      Last edit: Ludwig Hügelschäfer 2017-04-14
  • Matthias Hiddemann

    Ok, thanks. Maybe I misunderstood the sender of this file.
    He mentioned that this is the PGP Certificate of his central mailadress to be used to send encrypted mails.
    How do I have to handle this certificate?

     
  • Ludwig Hügelschäfer

    The file is no certificate, at least not visible from the outside. As a side note: Please be aware that in OpenPGP language "key" is most times not only a key, but almost always a certificate. This is improper wording, but for historical reasons everyone used this.

    The file is encrypted, and only the owner of the key with the id 9316D00B12E1F9ED can decrypt it. I just checked, that 9316D00B12E1F9ED is the encryption subkey of your main key.

    So please, go ahead and try to decrypt it. It may contain your correspondants public key, maybe something else, but only you can see the content after decryption. Good luck!

     
  • Matthias Hiddemann

    Got it - It was an encrypted key in an already encrypted mail!

    Great support even on a public holiday, thanks a lot.
    Thumbs up.

     
  • Ludwig Hügelschäfer

    You're welcome :-) I just removed the attachment, it's of no use anymore being online.

     
<< < 1 2 (Page 2 of 2)

Log in to post a comment.