<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Problem importing public keys for S/MIME</title> 
  <pubDate>Mon, 06 Apr 2026 08:17:54 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/5986</link> 
  <atom:link rel="self" type="application/rss+xml" title="Problem importing public keys for S/MIME" href="https://bugs.horde.org/ticket/5986/rss" /> 
  <description>Problem importing public keys for S/MIME</description> 
 
   
   
  <item> 
   <title>X.509 certificates may contain email addresses in the subjec</title> 
   <description>X.509 certificates may contain email addresses in the subject. But it is also possible to move the email address from the subject to the subject alternative name.



Horde looks for the mail address only in the subject of the certificate during the import of the public key. If the address was moved from the subject to the subject alternative name horde is unable to import the public key.



I hope this small patch for smime.php is suitable.</description> 
   <pubDate>Thu, 13 Dec 2007 10:03:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5986#t39748</link> 
  </item> 
   
  <item> 
   <title>There was no patch attached.</title> 
   <description>There was no patch attached.</description> 
   <pubDate>Thu, 13 Dec 2007 18:19:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5986#t39792</link> 
  </item> 
   
  <item> 
   <title>the patch for smime.php



*** framework/Crypt/Crypt/smime.p</title> 
   <description>the patch for smime.php



*** framework/Crypt/Crypt/smime.php-orig	Wed Aug 22 11:48:04 2007

--- framework/Crypt/Crypt/smime.php	Wed Dec 12 16:00:45 2007

***************

*** 1250,1255 ****

--- 1250,1265 ----

              } elseif (isset($key_info[&#039;subject&#039;][&#039;emailAddress&#039;])) {

                  return $key_info[&#039;subject&#039;][&#039;emailAddress&#039;];

              }

+ 	}

+ 	// Hg: the email address could be moved from the subject to the 

+ 	//     subjectAltName field

+         if (is_array($key_info) &amp;&amp; isset($key_info[&#039;extensions&#039;])) {

+             if (isset($key_info[&#039;extensions&#039;][&#039;subjectAltName&#039;])) {

+ 		$val = $key_info[&#039;extensions&#039;][&#039;subjectAltName&#039;];

+ 		if (trim(stripos($val, &quot;mail:&quot;)) == 1) {

+             	    return substr($val, 7);

+ 		}

+             }

          }

  

          return null;

</description> 
   <pubDate>Thu, 13 Dec 2007 18:25:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5986#t39808</link> 
  </item> 
   
  <item> 
   <title>Can you also provide an example cert that triggers this beha</title> 
   <description>Can you also provide an example cert that triggers this behavior?</description> 
   <pubDate>Thu, 13 Dec 2007 18:52:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5986#t39832</link> 
  </item> 
   
  <item> 
   <title>I was able to generate a test for this, including a multi-va</title> 
   <description>I was able to generate a test for this, including a multi-valued subjectAltName set of email addresses, and committed a similar patch (that also handles multiple values correctly).</description> 
   <pubDate>Fri, 28 Dec 2007 22:26:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5986#t40496</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
