6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
11/8/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#9514] Fatal error when saving S/MIME key
*
Your Email Address
*
Spam protection
Enter the letters below:
.___.. ..__ .. . _/ \ /[ __ |\ / ./__. \/ [_./\__| \/
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'))); > }
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers