Results 1 to 10 of 10

Thread: PGP - no default secret key

  1. #1
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    PGP - no default secret key

    How do I go about specifying which secret key to use to sign a document? I am trying to eliminate the error below:

    Code:
    gpg --clearsign foobar
    gpg: no default secret key: unusable secret key
    gpg: foobar: clearsign failed: unusable secret key

  2. #2
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    4,533
    Distro
    Lubuntu 16.04 Xenial Xerus

    Re: PGP - no default secret key

    gpg uses the first key in your keyring as the key, unless you specify otherwise.

    It looks as though you have not set up a key.

    Open Passwords and Encryption Keys. File > New > PGP Key. Create your key, and it should work after that.
    Full system encryption with dual-boot (beta) —— Full Circle Magazine —— Problems with WINE?
    In my day, we had the outdoors in which to run, play, and socialise. Now people use computers for that.

  3. #3
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Setting one key as default

    Quote Originally Posted by Paddy Landau View Post
    gpg uses the first key in your keyring as the key, unless you specify otherwise.
    How do I specify otherwise? There are multiple keys in this keyring.

  4. #4
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    4,533
    Distro
    Lubuntu 16.04 Xenial Xerus

    Re: Setting one key as default

    Quote Originally Posted by Lars Noodén View Post
    How do I specify otherwise? There are multiple keys in this keyring.
    Read the manual for all the options.
    Code:
    man gpg
    The option you are looking for is either --default-key or --local-user.
    Code:
    gpg --default-key 70A6B53F --clearsign foobar
    Full system encryption with dual-boot (beta) —— Full Circle Magazine —— Problems with WINE?
    In my day, we had the outdoors in which to run, play, and socialise. Now people use computers for that.

  5. #5
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    --default-key or --local-user

    Quote Originally Posted by Paddy Landau View Post
    The option you are looking for is either --default-key or --local-user.
    Thanks. That was it.

    I needed to read the part about --clearsign, where it mentions --default-key
    Last edited by Lars Noodén; May 10th, 2011 at 09:19 AM.

  6. #6
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    4,533
    Distro
    Lubuntu 16.04 Xenial Xerus

    Re: PGP - no default secret key

    Personally, I would have preferred a GUI method to sign and encrypt files. That would make it easy.

    However, I don't know of any GUI utility that does this.
    Full system encryption with dual-boot (beta) —— Full Circle Magazine —— Problems with WINE?
    In my day, we had the outdoors in which to run, play, and socialise. Now people use computers for that.

  7. #7
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    enigmail

    Quote Originally Posted by Paddy Landau View Post
    Personally, I would have preferred a GUI method to sign and encrypt files.
    For e-mail on Thunderbird, there is the plug-in engimail. But for general files, I only know of the text-based option.

  8. #8
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    4,533
    Distro
    Lubuntu 16.04 Xenial Xerus

    Re: enigmail

    Quote Originally Posted by Lars Noodén View Post
    there is the plug-in engimail.
    I don't think this works on files; only on emails.
    Full system encryption with dual-boot (beta) —— Full Circle Magazine —— Problems with WINE?
    In my day, we had the outdoors in which to run, play, and socialise. Now people use computers for that.

  9. #9
    Join Date
    Jul 2007
    Location
    Tāmaki Makau-rau, NZ
    Beans
    Hidden!
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: PGP - no default secret key

    If you install seahorse-plugins, you have "sign" and "encrypt" (or "decrypt") as options when you right-click on a file.
    Please, people, remember to BACKUP before you install that new system. Same if you're upgrading.

    Ubuntu membership via Forums contributions

  10. #10
    Join Date
    Nov 2007
    Location
    Newry, Northern Ireland
    Beans
    1,258

    Re: PGP - no default secret key

    Not much use here, but KDE has Kleopatra which iirc has the option to encrypt or decrypt using a GUI.

    Might be wrong though, I use Kleopatra on my Windows partition.
    Can't think of anything profound or witty.
    My Blog: http://gonzothegeek.blogspot.co.uk/

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
  •