6.0.0-alpha10
5/25/25

[#9514] Fatal error when saving S/MIME key
Summary Fatal error when saving S/MIME key
Queue IMP
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester jan (at) horde (dot) org
Created 01/14/2011 (5245 days ago)
Due
Updated 02/18/2011 (5210 days ago)
Assigned 01/15/2011 (5244 days ago)
Resolved 01/18/2011 (5241 days ago)
Milestone
Patch No

History
02/18/2011 10:39:28 PM Git Commit Comment #10 Reply to this comment
Changes have been made in Git for this ticket:

Bug #9514: Fix variable names

http://git.horde.org/horde-git/-/commit/c18d115199170e5d3794e2c2e086641ad096c05b
02/17/2011 03:54:10 PM hordetest (at) trash-mail (dot) com Comment #9 Reply to this comment
I still get the A fatal error has occurred No certificate found. popup.
Probably because that key is already saved.
There are some bugs in the implementation of the method addPublicKey 
in smime.php.
These coding is working for me. Please take as initial input:

     /**
      * Add a public key to an address book.
      *
      * @param string $cert  A public certificate to add.
      *
      * @throws Horde_Crypt_Exception
      */
     public function addPublicKey($cert)
     {
                $cert_a = $this->publicKeyInfo($cert);
                $name = $cert_a[0]['subject']['CN'];
                $email = $cert_a[0]['subject']['emailAddress'];

         $GLOBALS['registry']->call('contacts/addField', array($email, 
$name, self::PUBKEY_FIELD, $cert, 
$GLOBALS['prefs']->getValue('add_source')));
     }
01/21/2011 06:41:32 PM Michael Slusarz Comment #8 Reply to this comment
I still get the A fatal error has occurred No certificate found. popup.
Probably because that key is already saved.
01/21/2011 06:40:57 PM Git Commit Comment #7 Reply to this comment
Changes have been made in Git for this ticket:

Bug #9514: Don't allow adding public key if already exists

http://git.horde.org/horde-git/-/commit/a9e594706022287b78911885352cfb91f4b697d7
01/21/2011 10:48:12 AM hordetest (at) trash-mail (dot) com Comment #6 Reply to this comment
I still get the A fatal error has occurred No certificate found. popup.
01/18/2011 08:25:24 AM Michael Slusarz State ⇒ Resolved
 
01/18/2011 08:25:18 AM Git Commit Comment #5 Reply to this comment
Changes have been made in Git for this ticket:

Bug #9514: Fix importing S/MIME key

http://git.horde.org/horde-git/-/commit/2d06be19a609b70731e38d08e2cb4a3d71223d3b
01/15/2011 12:18:47 PM Jan Schneider Comment #4
State ⇒ Assigned
Reply to this comment
The fatal error goes away, but the popup window doesn't close, and "No 
Certificate found" is pushed on the notification stack (visible at the 
next page load).
01/14/2011 11:36:58 PM Michael Slusarz Comment #3
State ⇒ Feedback
Reply to this comment
Fixed?
01/14/2011 11:36:39 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git for this ticket:

Bug #9514: Pass the mailbox name, not the certificate itself

http://git.horde.org/horde-git/-/commit/dab4c36b1e1012ffc7908b49592c8a684091417f
01/14/2011 03:39:13 PM Jan Schneider Comment #1
Priority ⇒ 1. Low
State ⇒ Assigned
Patch ⇒ No
Milestone ⇒
Assigned to Michael Slusarz
Queue ⇒ IMP
Summary ⇒ Fatal error when saving S/MIME key
Type ⇒ Bug
Reply to this comment
When trying to save an S/MIME key from a signed message into the 
address book, I get the following fatal error in the popup:

A fatal error has occurred
Error displaying message.

1. IMP_Injector_Factory_Contents->create() 
/home/jan/horde-git/imp/smime.php:105
2. IMP_Contents->__construct() 
/home/jan/horde-git/imp/lib/Injector/Factory/Contents.php:50

Saved Queries