Recommended Posts

I just installed Linux Mint 17.1 Rebecca 64-bit and for some reason I just cannot generate a pgp key.  I goto Passwords and Keys and File -> New -> PGP Key -> Enter Name and Email ->  Then I enter password and nothing happens.  It was saying "Could Not Generate PGP Key - General Error" but I changed my password length from 50 characters to 25 and now it's just not saying anything.  I press okay and nothing happens.  If someone could help me out that would be great. Could this be a file/folder permission issue, idk? Also I'm kind of a new Linux user, so keep that in mind.  Thanks in advanced for the help.

Link to comment
https://www.neowin.net/forum/topic/1241364-pgp-error-with-linux-mint/
Share on other sites

I tried this, but it's still not working....If someone could help me out that'd be great.  It's a new mint install..Heres my output....

gpg --gen-key

gpg (GnuPG) 1.4.16; Copyright (C) 2013 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Please select what kind of key you want:
   (1) RSA and RSA (default)
   (2) DSA and Elgamal
   (3) DSA (sign only)
   (4) RSA (sign only)
Your selection? 1
RSA keys may be between 1024 and 4096 bits long.
What keysize do you want? (2048) 4096
Requested keysize is 4096 bits
Please specify how long the key should be valid.
         0 = key does not expire
      <n>  = key expires in n days
      <n>w = key expires in n weeks
      <n>m = key expires in n months
      <n>y = key expires in n years
Key is valid for? (0) 0
Key does not expire at all
Is this correct? (y/N) y

You need a user ID to identify your key; the software constructs the user ID
from the Real Name, Comment and Email Address in this form:
    "Heinrich Heine (Der Dichter) <heinrichh@duesseldorf.de>"

Real name: K
Email address: k@gmail.com
Comment:
You selected this USER-ID:
    "K <k@gmail.com>"

Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? o
You need a Passphrase to protect your secret key.

We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.

Not enough random bytes available.  Please do some other work to give
the OS a chance to collect more entropy! (Need 231 more bytes)
..+++++

Not enough random bytes available.  Please do some other work to give
the OS a chance to collect more entropy! (Need 198 more bytes)
........+++++
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.

Not enough random bytes available.  Please do some other work to give
the OS a chance to collect more entropy! (Need 250 more bytes)
+++++

Not enough random bytes available.  Please do some other work to give
the OS a chance to collect more entropy! (Need 256 more bytes) 

why it's not working? looks like it's collecting all the needed bytes. just let it run and do some work, browse the web. it might take up to 15mins till ennough random bytes are collected. be patient.  :)

Ok. So the key generated alright. Also, I'm using GPA as the gui. GPA has a clipboard feature.

I wanted to know. Whats the point of having an expiration date on my gpg key if I can just generate a new one? Does it just make it so I cannot use that key to encrypt/decrypt past that date and it forces me to generate a new one? Thanks.

  On 01/01/2015 at 02:50, kman1985 said:

Ok. So the key generated alright. Also, I'm using GPA as the gui. GPA has a clipboard feature.

I wanted to know. Whats the point of having an expiration date on my gpg key if I can just generate a new one? Does it just make it so I cannot use that key to encrypt/decrypt past that date and it forces me to generate a new one? Thanks.

For personal use, there's not much use.  If you were implementing PGP in a business environment though where you were dealing with lots of data and lots of PGP keys for lots of people, where compromised security could mean lost man hours and money, expiration dates would help you make sure things stayed secure.  For example if an employee leaves your company and you forget to revoke their e-mail keys, having an expiration date makes sure they get invalidated automatically after a while anyway.  Regularly changing file encryption keys would help make sure that only people in the company with access to the updated keys have access to the files, and not adversaries who may have come into possession of of older encryption keys.

 

For your personal use though, an expiration date isn't really necessary.

  On 01/01/2015 at 02:50, kman1985 said:

Ok. So the key generated alright. Also, I'm using GPA as the gui. GPA has a clipboard feature.

I wanted to know. Whats the point of having an expiration date on my gpg key if I can just generate a new one? Does it just make it so I cannot use that key to encrypt/decrypt past that date and it forces me to generate a new one? Thanks.

 

well it looks like the clipboard is there to try to see if encryption/decryption works and can be used to directly do so

 

  Quote

 

 

How to create your encrypted message.

In the GPA, there is a clipboard tool. This is a place where you will write and encrypt your messages.

Try encrypting a message in your own key.

1) Open the clipboard in the GPA and type a message.

2) Select the encrypt option up top.

3) Select the Key that you wish to encrypt to, try your key first so you get the hang of it. The message should now become the same kind of random looking data you saw earlier.

4) Choose the decrypt option and type in your password if you encrypted to your own key, the message should now return to its original format.

 

read here

 

personally i rather use KGpg and encrypt my emails directly in Kontact/Kmail or via a Dolphin-extension i use it to encrypt/decrypt files/folders.

 

for ubuntu, use nautilus and nautilus-seahorse for encryption/decryption via the context menu.

This topic is now closed to further replies.
  • Posts

    • If I'm not mistaken, doesn't almost al servers run apache, wich is linux
    • I use LibreOffice for many years now; not much but it suites all my needs. Although it's free, never forget to donate every now and then; It'll be appreciated
    • Crucial T500 2TB Gen4 NVMe M.2 2280 SSD is selling at its lowest price in over a year by Sayan Sen If you are in the market, either online or offline, shopping for NVMe SSDs, then there are several good options to choose from. Western Digital, for example, is offering its 4TB SN8100 (PCIe 5.0) and SN7100 (PCIe 4.0) drives for the lowest prices. Team Group also has its 4TB G50 for just $200 but only for a few more hours. If you need a 2TB Gen4 option then check out Crucial's T500 that is available for just $125, the lowest it has been in over a year (purchase links down below). Both the heatsink and non-heatsink variants are discounted so you can pick and choose. The T500 promises speeds of 7400 MB/s and 7000 MB/s in terms of sequential reads and sequential writes. In terms of random throughputs, the T500 claims reads of 1180K IOPS (input output operations per second) and writes of 1440K IOPS. These high random speeds are thanks to the Phison PS5025-E25 controller that packs 2GB LPDDR4-4266 DRAM cache. Thus the drive will not need to access system memory for caching and other purposes. The Crucial B500 features Micron B58R FortisFlash 232-layer TLC (triple level cell) NAND flash memory with an endurance rating of 1200 TBW (terabytes written). Get the SSD at the link below: Crucial T500 2TB without Heatsink, Laptop & Desktop Compatible + 1mo Adobe CC All Apps - CT2000T500SSD8: $124.99 (Shipped and Sold by Amazon US) Crucial T500 2TB with Heatsink, PlayStation 5 Compatible + 1mo Adobe CC All Apps- CT2000T500SSD5: $132.99 (Shipped and Sold by Amazon US) This Amazon deal is US-specific and not available in other regions unless specified. If you don't like it or want to look at more options, check out the Amazon US deals page here. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
    • I'm waiting for windows 12. They will probably release it next year. By that point they might have moved all of control panel over to the settings app which would be nice.
    • Well damn i am already suffering and I don’t want crap like that - fixing things that already worked before… sons ewe can’t have win10 forever as promised i might as well wait for win 12 and (fingers crossed) hope it will be the good version again
  • Recent Achievements

    • One Month Later
      jezzzy earned a badge
      One Month Later
    • First Post
      CSpera earned a badge
      First Post
    • One Month Later
      MIR JOHNNY BLAZE earned a badge
      One Month Later
    • Apprentice
      Wireless wookie went up a rank
      Apprentice
    • Week One Done
      bukro earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      628
    2. 2
      ATLien_0
      281
    3. 3
      +FloatingFatMan
      179
    4. 4
      Michael Scrip
      149
    5. 5
      Steven P.
      118
  • Tell a friend

    Love Neowin? Tell a friend!