View Issue Details

IDProjectCategoryView StatusLast Update
0000246Main CAcert WebsiteGPG/PGPpublic2013-01-14 08:47
ReporterTheSourcerer Assigned ToSourcerer  
Status closedResolutionunable to reproduce 
Fixed in Version2007 
Summary0000246: gpg signing sometimes does not work
DescriptionTrying to get a OpenPGP key signed, sometimes gives the following error:
"No emails found on your key"
I tried it with exactly the same key a couple of times, sometimes I got a correctly signed key, sometimes I got that error message.
I can´t reproduce it guaranteed, and I haven´t found a reason why it happens.
Additional InformationWe could try to use the following debugging code to get to know why it happens in the gpg.php 0000135:
    } else {
                        fputs($fp,"New case:\nCSR:\n")
                        fputs($fp, $_POST['CSR']);
                        fputs($fp,"emailaddies: is_array:".is_array($emailaddies)."\n");
                        fputs($fp,"emailaddies: $emailaddies\n");
                        fputs($fp,"count(emailaddies): ".count($emailaddies)."\n");
                        fputs($fp,"gpg: ".$gpg."\n");
                        fputs($fp,"lines: ".$lines."\n");

                        $_SESSION['_config']['errmsg'] = _("No emails found on your key");
TagsNo tags attached.
Reviewed by
Test Instructions


related to 0000460 closedSourcerer Please disable GPG signing until we have a production-quality system 



2006-05-29 00:12

developer   ~0000237

Possible fix:

Line 47 of www/gpg.php;

- foreach(explode("\n", $gpg) as $line)

+ $gpgarr = explode("\n", $gpg);
+ foreach($gpgarr as $line)


2007-03-29 13:05

reporter   ~0000827

Is that a duplicate of Bug 236?
Maybe the issue is solved with
Can someone still confirm this bug?


2007-11-17 14:01

administrator   ~0000949

Please test again now, and confirm whether the problem still exists.


2007-12-19 23:14

administrator   ~0000973

If anyone can reproduce the bug, please reopen it and post the used public key.

Issue History

Date Modified Username Field Change
2006-05-28 22:36 TheSourcerer New Issue
2006-05-29 00:12 duane Note Added: 0000237
2006-08-14 02:48 duane Status new => needs work
2006-08-14 02:48 duane Assigned To => Sourcerer
2007-03-29 13:05 Jan Note Added: 0000827
2007-10-18 15:21 pc Relationship added related to 0000447
2007-10-24 05:09 evaldo Relationship added related to 0000460
2007-11-04 17:41 Sourcerer Relationship deleted related to 0000447
2007-11-17 14:01 Sourcerer Note Added: 0000949
2007-12-19 23:14 Sourcerer Status needs work => closed
2007-12-19 23:14 Sourcerer Note Added: 0000973
2007-12-19 23:14 Sourcerer Resolution open => unable to reproduce
2007-12-19 23:14 Sourcerer Fixed in Version => production
2013-01-14 08:47 Werner Dworak Fixed in Version => 2007