6.0.0-alpha12
6/9/25

[#3497] Unable to create PGP-Keys
Summary Unable to create PGP-Keys
Queue IMP
Queue Version 4.0.4
Type Bug
State Not A Bug
Priority 1. Low
Owners Horde Developers (at)
Requester noethen (at) zitmail (dot) upb (dot) de
Created 02/16/2006 (7053 days ago)
Due
Updated 07/02/2006 (6917 days ago)
Assigned 03/10/2006 (7031 days ago)
Resolved 07/02/2006 (6917 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
07/02/2006 01:49:54 AM Michael Slusarz Comment #11
State ⇒ Not A Bug
Priority ⇒ 1. Low
Reply to this comment
This error was already fixed in FW_3 and HEAD a while ago.  And it 
turned out this was a broken gnupg issue anyway.
05/15/2006 01:31:29 AM david (at) tmv (dot) gov (dot) tw Comment #10
New Attachment: pgp_error.gif Download
Reply to this comment
hi,

[Options->Mail->PGP]

after the click on "ok", the messagebox with the info "...may take a
long time to complete.Continiue with key generation" nothing happens.
Only the page is reloaded.
Have the same problem here during key generation,and there is a java 
script warning (see pgp_error.gif) at status-bar,even upgrade gpg from 
1.2 to 1.4.3



ENV Horde: 3.0.10 +Imp: H3 (4.0.4) + gpg 1.2.1

It works fine here with Head version.
On a testsystem we had version 4.0.2 installed and the creation of
pgp-keys worked. Updating to version 4.0.4 causes the above described
behaviour.
05/11/2006 02:39:35 PM ben Comment #9 Reply to this comment
I just upgraded to gnupg-1.4.3, and PGP key generation is working 
again for me.
03/10/2006 07:27:55 PM Jan Schneider Comment #7 Reply to this comment
Looks like it's a gpg problem:



LANG= ; /usr/bin/gpg --no-tty --no-secmem-warning --no-options 
--no-default-keyring --quiet --yes --homedir /dev/shm/jlfpj0wo 
--gen-key --batch --armor

%pubring /dev/shm/jlfpj0wo/horde-pgpSYKlUM

%secring /dev/shm/jlfpj0wo/horde-pgpBq0X3I

Key-Type: DSA

Key-Length: 1024

Subkey-Type: ELG-E

Subkey-Length: 1024

Name-Real: asdöjf

Name-Email: schneiderj@gmx.de

Expire-Date: 0

Passphrase: j

%commit

++++++++++..+++++++++++++++++++++++++.+++++.+++++++++++++++++++++++++.++++++++++++++++++++.++++++++++.++++++++++.+++++++++++++++++++++++++>+++++.+++++...............................+++++

+++++++++++++++++++++++++.++++++++++.++++++++++..++++++++++++++++++++.+++++++++++++++.++++++++++++++++++++.++++++++++++++++++++..+++++.+++++>+++++>+++++....................+++++^^^

gpg: build-packet.c:74: build_packet: Assertion `pkt->pkt.generic' failed.



After the first hash line was a *very* long pause.
03/10/2006 06:32:58 PM Chuck Hagenbuch Comment #6 Reply to this comment
Do we fork off another process to do the key creation, or do we 
actually do it in PHP code? If we can get that to run in the 
background, we can reload the page every 5-10 seconds until the output 
is in the expected place.
03/10/2006 03:45:18 PM Michael Slusarz Comment #5 Reply to this comment
Works for me.  Takes a long time, but the page reloads and the keys 
are generated successfully (this was a 1024 bit key).  However, I 
think the odds are very few computers, unless they are pretty darn 
powerful and have close to 0 load and have good random entropy 
generators, are going to be able to produce a 2048 bit PGP key in 30 
seconds.



Don't know if we can do some kind of page that uses javascript/meta 
refreshes to hit the server every 5 seconds or so and keep the PHP 
script alive.  Or if we have to ditch key generation in general.
03/10/2006 10:05:29 AM Jan Schneider Priority ⇒ 3. High
 
03/10/2006 10:04:15 AM Jan Schneider Comment #4
Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
Reply to this comment
I can reproduce this, sort of. I get a result, though after a very 
long time. I guess you have max_execution_time set in Horde's 
configuration.

But I don't get a key after the page has loaded either.
02/21/2006 05:25:42 PM noethen (at) zitmail (dot) upb (dot) de Comment #3 Reply to this comment
Can you try if it works with IMP 4.1-RC3?
With IMP4.1 RC3 it only works with IE but during this operation the 
browser hangs up. With Firefox 1.5.0.1 it does nothing then hanging 
up. Keys should be saved to mysql-db.



Hanging up means the used browser window does not react on clicks or 
something else. Only closing the window is a solution.






02/16/2006 05:23:34 PM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
Can you try if it works with IMP 4.1-RC3?
02/16/2006 04:37:37 PM noethen (at) zitmail (dot) upb (dot) de Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Unable to create PGP-Keys
Queue ⇒ IMP
State ⇒ Unconfirmed
Reply to this comment
hi,



[Options->Mail->PGP]



after the click on "ok", the messagebox with the info "...may take a 
long time to complete.Continiue with key generation" nothing happens. 
Only the page is reloaded.



On a testsystem we had version 4.0.2 installed and the creation of 
pgp-keys worked. Updating to version 4.0.4 causes the above described 
behaviour.

Saved Queries