Menu

no import of my private keys possible

Chris
2020-01-30
2020-02-03
  • Chris

    Chris - 2020-01-30

    Hello, everybody,

    unfortunately I do not get my private keys imported. I have pub-sec.asc and pub.asc available. But Enigmail only imports the public key.

    I have two e-mail addresses, so I have 4 files in total.

    System: Ubuntu 18.04
    Thunderbird: 68.4.1 (64-Bit)
    Enigmail: 2.1.5 (20191231-1524)

    What am I doing wrong? ;)
    Thanks

     
  • Olav Seyfarth

    Olav Seyfarth - 2020-01-30

    Hi Chris,

    pub-sec.asc should be all you need. If you had selected both your keys during export, you'd even only need one file for both keypairs. Apart from the .asc export/import way, there alternatively is a special Enigmail function "Export settings and keys" in Engimail preferences→Transfer settings.

    Not sure what happened to your export. Please open pub-sec.asc in a text editor and verify that there is a section that starts with "-----BEGIN PGP PRIVATE KEY BLOCK-----". If that exists and Enigmail on the target computer still doesn't import that file resulting in secret keys being available, please try the command line:

    Open a terminal, type "gpg -v". Verify, that you have a GnuPG version >=2.1. then type "gpg --import PATH-TO/pub-sec.asc" and check the output. Post error messages here, but if you get errors, it's not an Enigmail but a GnuPG issue.

    Olav

     
  • Chris

    Chris - 2020-01-30

    Hey, inside my pub-sec.asc:

    -----BEGIN PGP PUBLIC KEY BLOCK-----
    KEY
    -----END PGP PUBLIC KEY BLOCK-----

    -----BEGIN PGP PRIVATE KEY BLOCK-----
    KEY
    -----END PGP PRIVATE KEY BLOCK-----

    I have both pub-sec.asv in my downloads folder

    Is this correct?:
    gpg --import $HOME/Downloads/pub-sec.asc
    or
    gpg --import $HOME/Downloads/MAILNAME.pub-sec.asc

     
  • Olav Seyfarth

    Olav Seyfarth - 2020-01-31

    Yes, seems OK. Check what output you get. What does 'gpg --list-secret-keys' yield?

     
  • Chris

    Chris - 2020-01-31

    German, but i think u r able to read ;)

    $ gpg -v
    gpg: WARNING:  Kein Kommando angegeben.  Versuche zu raten was gemeint ist ...
    gpg: Auf geht's - Botschaft eintippen ...
    
     
  • Olav Seyfarth

    Olav Seyfarth - 2020-01-31

    Sorry…'gpg --version'. See 'gpg --help' :-)

     
  • Chris

    Chris - 2020-02-01
    gpg --version
    gpg (GnuPG) 2.2.4
    libgcrypt 1.8.1
    Copyright (C) 2017 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    
    Home: /home/NAME/.gnupg
    Unterstützte Verfahren:
    Öff. Schlüssel: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
    Verschlü.: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
               CAMELLIA128, CAMELLIA192, CAMELLIA256
    Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
    Komprimierung: nicht komprimiert, ZIP, ZLIB, BZIP2
    
     
  • Olav Seyfarth

    Olav Seyfarth - 2020-02-01

    You have a current version. If you did NOT configure any special paths, Enigmail should find and use that version. But again, after having imported your keys (once), what does 'gpg --list-secret-keys' yield?

     
  • Chris

    Chris - 2020-02-02

    gpg --list-secret-keys <- Nothing ;)

    okay, maybe it really is the path.
    It's in home/name/snap

     
  • Patrick Brunschwig

    It looks like K-9 mangled my answer-- therfore here again:

    What is the output of gpg --import $HOME/Downloads/pub-sec.asc ?

     

    Last edit: Patrick Brunschwig 2020-02-03
  • Chris

    Chris - 2020-02-03
    > gpg --import $HOME/Downloads/puc-sec.asc
    gpg: Schlüssel 1FXXXXXXXXX0E: "NAME NAME  <NAME@MAIL.de>" nicht geändert
    gpg: Schlüssel 1FXXXXXXXXX0E: "NAME NAME <NAME@MAIL.de>" nicht geändert
    gpg: Schlüssel 1FXXXXXXXXX0E: geheimer Schlüssel importiert
    gpg: Anzahl insgesamt bearbeiteter Schlüssel: 2
    gpg:              unverändert: 2
    gpg:       gelesene geheime Schlüssel: 1
    gpg:  unveränderte geh. Schl.: 1
    

    XXX~$ gpg --list-keys
    /home/NAME/.gnupg/pubring.kbx
    pub   eXXXX9 2019-09-25 [SC] [verfällt: 2024-09-23]
          CCXXXXXXXXXXXXXXXXXXXXXXXXXX0B0
    uid        [ unbekannt] "NAME NAME  <NAME@MAIL.de>" 
    sub   cvXXXX9 2019-09-25 [E] [verfällt: 2024-09-23]
    
    pub   rsaXX6 2018-11-23 [SCA] [verfällt: 2023-11-22]
          E7XXXXXXXXXXXXXXXXXXXXXXXXXXX0E
    uid        [ unbekannt] "NAME NAME  <NAME@MAIL.de>" 
    sub   rsaXX6 2018-11-23 [E] [verfällt: 2023-11-22]
    
     
  • Chris

    Chris - 2020-02-03

    Now that I have installed the version 68.4.2 (64-bit) directly from the Thunderbird homepage it works directly.

    The previous version was directly from the "store" of Ubuntu for 18.04 (screenshot). Maybe it is due to the Ubuntu version?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.