Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: no save or backup of private keys and keyrings

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Location
    NL
    Beans
    12
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    no save or backup of private keys and keyrings

    Untill last week I used Windows and PGP for many years. I think I am fairly familiar with PGP.
    Last week I installed Ubuntu 9.04 (jauntry; Gnome).
    I was happy that with Ubuntu's application "Passwords and keys" I could import my private keyring (pubring.pkr) and my secret keyring (secring.skr) I made quite some time ago with PGP under Windows. The import went without any delay and flawless.

    Now I have two problems:
    1. I can sign email, but I cannot check signed email and I cannot encrypt email. A pop up shows that it could be because of "a broke pipe". I do not understand that. Maybe someone reading this can help.

    Much more important is however:
    2. I cannot save or backup my private keys. According to the associated Help document there should be a some key for that:
    chapter "Backing up Keyrings", Choose Key ▸ Back up Keyrings.
    I cannot find such key in any GUI.
    If an encryption key is meant, OK, I see them, but I am unable to get something like Backup Keyrings. I can't even find the words "backup" and "keyring" outside the Help document.
    In Synaptic packet manager I saw that gnupg was installed, but a gnup2 was not. So I installed gnup2. Nothing changed. So I removed gnupg2.
    I thought a GUI was missing, so I installed libcrypt-gpg-perl. Nothing changed, so I removed it.

    If I export a (new test-)key, I then remove it from the application's list, if I import the key is only the public one. The private key of the pair was nowhere to find. That seems to prove that it is impossible to save private keys or keypairs. Of course that makes it to dangerous to use those private keys (you might loose them) and thus useless to encrypt things by using the associated public keys.

    Where did I go wrong and/or what can I do to solve the problem(s)?
    By the way, I am not realy keen on using a terminal window.

    I would really like to get some assitance from you.

    Aad van der Arend
    Last edited by aadx; July 5th, 2009 at 12:05 AM.

  2. #2
    Join Date
    Jun 2009
    Location
    NL
    Beans
    12
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Cool how to save private keys and/or keyrings??

    May I please ask your attention to the following thread:
    http://ubuntuforums.org/showthread.php?t=1202524

    I really need to save my private keys and keyring.

    At the moment I can only use my old PGP private and public keyrings.

    I can generate and use a new keypair, but I can only save the public key of the pair. As a consequence the new pair is worthless bearing in mind that the private key can be lost.

    Aad

  3. #3
    Join Date
    Sep 2006
    Location
    .nl
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: how to save private keys and/or keyrings??

    This is just a really elaborate "bump" of yours...

  4. #4
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu 17.10 Artful Aardvark

  5. #5
    Join Date
    Sep 2006
    Location
    .nl
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: no save or backup of private keys and keyrings

    I do not like the GUI. Everytime I click on "synchronize" it tells me a gazillion keys are going to be synchronized without telling me whether it's going to be uploading, or indeed anything about what it's doing. Good thing the GUI is only crafted to serve as a front end of gpg.

    Do you have any reason for disliking the terminal? It's fairly easy to export (secret) keys using the command line gpg tool. Just do:
    Code:
    gpg --output <file> --export-secret-keys <key ID>
    Use "--armor" to get a human-readable keyfile.

    Of course I do not need to tell you that backing up a key is also dangerous: keep it in a secure place!
    Please note that using the seahorse GUI really just manipulates gpg and its files. In other words, there's no problem in using both. If you want to backup your keyrings just copy the .gpg files in ~/.gnupg/
    To get a better idea of how to use gpg, either look at its manpage ("man gpg" in the terminal) or search the tubes.

    The most important thing I take away from your post, though, is that it might be time for you to generate a new key. Check this page for why and how:
    http://www.debian-administration.org.../dkg/weblog/48

  6. #6
    Join Date
    Jun 2009
    Location
    NL
    Beans
    12
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: no save or backup of private keys and keyrings

    Trebaruna,

    Thank you for your reply.

    You asked for my reason why I dislike the terminal window. My answer is that it is much easier to click on a single button of a GUI to save a key or keyring, than to open a terminal window and to type all kind of language specific commands in the right order and with the right filenames and parameters.
    As from about 1970 I have learned some programming languages: Algol, Fortran, Pascal, DOS, (Visual) Basic, Delphi, HTML, PHP. I might forget one or two.
    In spite of that I do not understand the command line you wrote.
    Therefore I think I must learn another language to get familiar with the terminal window and the commands I often see for use therein.
    I would appreciate it if you advised me about the language(s) relevant for use with Linux. UNIX?


    I just found out that I use Seahorse, which appears to be a GUI for GnuPG and which comes with GNOME.
    In Applications > Add/Remove I found another GUI for GnuPG: GNU Privacy Assistent.
    I installed it and I tested GNU Privacy Assistent with keypairs, which I just generated for this purpose.

    GNU Privacy Assistent resembles more with the PGP GUI for Windows than Seahorse.
    More important, GNU Privacy Assistent allows a user to make a backup of a specific keypair.

    With both GUI's, exporting and importing is for public keys only.

    With both GUI's, all keys are saved together in two keyrings (pubring.gpg and secring.gpg) in folder <personal folder>.gnupg.
    If you move the rings to a different, safe place the GUI's don't show keys anymore. Once you moved or copied the rings back to ~.gnupg the keys are shown again in both GUI's (GNU Privacy Assistent must be closed first).


    Therefore I think GNU Privacy Assistent is the right GUI for me.
    Therefore also I think my problems are solved.

    Thank you all very much for the assistance.

    Aad van der Arend
    Last edited by aadx; July 6th, 2009 at 12:56 AM.

  7. #7
    Join Date
    Mar 2010
    Beans
    1

    Re: no save or backup of private keys and keyrings

    Indeed GNU Privacy Assistant is the best choice.

    I had used Seahorse until my file system crashed and I wasn't able to recover the secret key. I was just started using gpg and I encrypted a lot of valuable personal information, but I didn't make a backup copy. Seahorse is culpable for that, because when exporting your key you can only export your public key. I didn't knew how important is to backup your secret key, and I wasn't in a hurry to do that.

    Now I saved my encrypted files, along with the public key, hoping someday to find a way to decrypt them by brute force.

  8. #8
    Join Date
    Feb 2008
    Beans
    300
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Thumbs up Re: no save or backup of private keys and keyrings

    Indeed GNU Privacy Assistant is the best choice.

    I had used Seahorse until my file system crashed and I wasn't able to recover the secret key. I was just started using gpg and I encrypted a lot of valuable personal information, but I didn't make a backup copy. Seahorse is culpable for that, because when exporting your key you can only export your public key. I didn't knew how important is to backup your secret key, and I wasn't in a hurry to do that.

    Now I saved my encrypted files, along with the public key, hoping someday to find a way to decrypt them by brute force.
    Exactly the same thing happened to me. I am new to PGP and GPG thing. I created my private and public keys and to be on safe side I also 'exported' my keys believing that seahorse is going to backup all the required keys which I could import in future.

    Unfortunately after upgrading to 10.04, when I imported my saved keys, I came to know that they are only 'public' keys, and hence useless!

    Sad that seahorse GUI can't export personal keys.

    Learned a lesson in a hard way

    P.S.
    I just discovered that seahorse GUI can actually export personal keys.
    select properties of any key---> Go to 'details'---> press the button next to "export complete key"
    This should export the private key.
    Last edited by leonardo_neo; April 9th, 2010 at 02:15 AM.

  9. #9
    Join Date
    Jun 2009
    Location
    Alabama
    Beans
    2,232

    Arrow Re: no save or backup of private keys and keyrings

    I found this webpage to be invaluable in helping me understand how to safely manage my keys: http://blogs.koolwal.net/2009/04/01/...eys-in-debian/

    Tim
    Cyberpower PC, Core i5 2500 3.3 gHz, 8GB DDR3, ATI 6770 1GB, Samsung BX 2440 LED 1080p, 1 TB SATA III, 2 TB SATA III, Siduction Linux 64-bit

  10. #10
    Join Date
    Jun 2008
    Beans
    54

    Re: no save or backup of private keys and keyrings

    Applications > Accessories > Passwords and Encryption Keys > My Personal Keys > Right Click Account > Properties > Details > Export complete Key > Export

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •