<?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>s/mime private cert save to postgresql failed</title> 
  <pubDate>Fri, 10 Apr 2026 09:35:32 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/6252</link> 
  <atom:link rel="self" type="application/rss+xml" title="s/mime private cert save to postgresql failed" href="https://bugs.horde.org/ticket/6252/rss" /> 
  <description>s/mime private cert save to postgresql failed</description> 
 
   
   
  <item> 
   <title>I wonder if somebody could help me.



I have an x.509 certi</title> 
   <description>I wonder if somebody could help me.



I have an x.509 certificate from Thawte with some international characters:

subject=/SN=Gyuris/GN=Szabolcs J\xC3\xA1nos/CN=Szabolcs J\xC3\xA1nos Gyuris



I don&#039;t know what the problem is but my private certificate don&#039;t get saved to

smime_private_key, smime_public_key... :(



The certificate is originated from thunderbird backup system.

After I try to import the cert to IMP everything seems to be ok but nothing

happens in the database. But I was able to save my cert. manually to my

postgresql database. I have to remove all the text from cert. before -----BEGIN

CERTIFICATE----- and -----BEGIN RSA PRIVATE KEY-----...



Thank you!</description> 
   <pubDate>Tue, 12 Feb 2008 15:23:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6252#t42280</link> 
  </item> 
   
  <item> 
   <title>What happens if you try to import it?</title> 
   <description>What happens if you try to import it?</description> 
   <pubDate>Tue, 12 Feb 2008 16:35:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6252#t42283</link> 
  </item> 
   
  <item> 
   <title>&gt; What happens if you try to import it?



It works until I </title> 
   <description>&gt; What happens if you try to import it?



It works until I log off. And there&#039;s no database entry with pref_name=&#039;smime_public_key&#039; and pref_name=&#039;smime_private_key&#039;... There&#039;s no error message, nothing.



If I delete it on the webpage then 3 entry  appears with pref_name=&#039;smime_public_key&#039; and pref_name=&#039;smime_private_key&#039; and pref_name=&#039;smime_additional_cert&#039; with pref_value=&#039;&#039; .

</description> 
   <pubDate>Tue, 12 Feb 2008 17:02:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6252#t42284</link> 
  </item> 
   
  <item> 
   <title>The pgp import works great...</title> 
   <description>The pgp import works great...</description> 
   <pubDate>Fri, 15 Feb 2008 08:29:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6252#t42387</link> 
  </item> 
   
  <item> 
   <title>&gt; If I delete it on the webpage then 3 entry  appears with 
</title> 
   <description>&gt; If I delete it on the webpage then 3 entry  appears with 

&gt; pref_name=&#039;smime_public_key&#039; and pref_name=&#039;smime_private_key&#039; and 

&gt; pref_name=&#039;smime_additional_cert&#039; with pref_value=&#039;&#039; .



What do you mean with this?</description> 
   <pubDate>Sun, 24 Feb 2008 12:16:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6252#t42816</link> 
  </item> 
   
  <item> 
   <title>&gt; What do you mean with this?

Sorry for my poor english :(
</title> 
   <description>&gt; What do you mean with this?

Sorry for my poor english :(



So...



1. I have a clean database with no personal data.

2. I log into the website.

3. I upload my x.509 certificate

4. I can use it everything is fine

5. but there aren&#039;t any database entry in the database with my x.509 certificate (I think it&#039;s only in cache)

SELECT * from horde_prefs where pref_uid=&#039;szimszon@xxxxxxxxxxx&#039; and pref_name like &#039;smime_%&#039;;



        pref_uid         | pref_scope |       pref_name       |           pref_value

-------------------------+------------+-----------------------+---------------------------------

hordewebmail=#



6. I del my x.509 certificate 

7. after that there is 3 entry in the database:

SELECT * from horde_prefs where pref_uid=&#039;szimszon@xxxxxxxxxx&#039; and pref_name like &#039;smime_%&#039;;



        pref_uid         | pref_scope |       pref_name       |           pref_value

-------------------------+------------+-----------------------+---------------------------------

 szimszon@xxxxxxxxxxxxxx | imp        | smime_additional_cert |

 szimszon@xxxxxxxxxxxxxx | imp        | smime_private_key     |

 szimszon@xxxxxxxxxxxxxx | imp        | smime_public_key      |

hordewebmail=#

</description> 
   <pubDate>Sun, 24 Feb 2008 20:05:55 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6252#t42861</link> 
  </item> 
   
  <item> 
   <title>Is the pref_value field too small for your key? Can you try </title> 
   <description>Is the pref_value field too small for your key? Can you try IMP 4.2 and Horde 3.2 (the release candidates)? Are other preferences stored normally in your database?</description> 
   <pubDate>Mon, 25 Feb 2008 18:32:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6252#t43010</link> 
  </item> 
   
  <item> 
   <title>&gt; Is the pref_value field too small for your key?

I was abl</title> 
   <description>&gt; Is the pref_value field too small for your key?

I was able to put my key in db manualy.



&gt; Can you try IMP 4.2 

&gt; and Horde 3.2 (the release candidates)?

I&#039;ll try...



 Are other preferences stored 

&gt; normally in your database?

Yes. my pgp key is stored with no problems...</description> 
   <pubDate>Mon, 25 Feb 2008 18:54:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6252#t43023</link> 
  </item> 
   
  <item> 
   <title>&gt; I was able to put my key in db manualy.



Yes, but you sa</title> 
   <description>&gt; I was able to put my key in db manualy.



Yes, but you said you trimmed a lot of text from it. Make sure you set the max_size setting for your Prefs backend appropriately - if that&#039;s the issue you may get better error info that way.</description> 
   <pubDate>Mon, 25 Feb 2008 18:57:47 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6252#t43026</link> 
  </item> 
   
  <item> 
   <title>&gt; Yes, but you said you trimmed a lot of text from it. Make </title> 
   <description>&gt; Yes, but you said you trimmed a lot of text from it. Make sure you 

&gt; set the max_size setting for your Prefs backend appropriately - if 

&gt; that&#039;s the issue you may get better error info that way.



I was now able to insert manualy the certificate without trimming out any text.

I don&#039;t think that it&#039;s a data length problem. The pref_value is a &quot;text&quot; field.

</description> 
   <pubDate>Mon, 25 Feb 2008 21:26:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6252#t43047</link> 
  </item> 
   
  <item> 
   <title>Now I switched on the logging :)



Feb 25 20:46:45 HORDE [e</title> 
   <description>Now I switched on the logging :)



Feb 25 20:46:45 HORDE [emergency] [imp] DB Error: unknown error: INSERT INTO horde_prefs (pref_uid, pref_scope, pref_name, pref_value) VALUES(&#039;szimszon@oregpreshaz.eu&#039;, &#039;imp&#039;, &#039;smime_private_key&#039;, &#039;Bag Attributes

    friendlyName: Szabolcs J.nos Gyuris&#039;&#039;s Thawte Consulting (Pty) Ltd. ID

    localKeyID: 24 77 B9 AF B8 CD 6C 3D FE 85 13 33 E5 E4 D6 C4 5E 61 DE 86

Key Attributes: &lt;No Attributes&gt;

-----BEGIN RSA PRIVATE KEY-----

...

-----END RSA PRIVATE KEY-----&#039;) [nativecode=ERROR:  invalid byte sequence for encoding &quot;UTF8&quot;: 0xe16e6f

HINT:  This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by &quot;client_encoding&quot;.] [on line 263 of &quot;/srv/www/oregpreshaz.eu/ssl/horde.oregpreshaz.eu/lib/Horde/Prefs/sql.php&quot;]</description> 
   <pubDate>Tue, 26 Feb 2008 13:11:06 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6252#t43095</link> 
  </item> 
   
  <item> 
   <title>That helps a lot. And it makes me wonder, which encoding *do</title> 
   <description>That helps a lot. And it makes me wonder, which encoding *does* your public have? I.e. is the name in the comment block of the key utf-8 or iso-8859-1 encoded? And how did you get that key in the first place? Did you export it from somewhere? Did you create it on the command line? If so, how?</description> 
   <pubDate>Tue, 26 Feb 2008 13:54:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6252#t43098</link> 
  </item> 
   
  <item> 
   <title>&gt; That helps a lot. And it makes me wonder, which encoding *</title> 
   <description>&gt; That helps a lot. And it makes me wonder, which encoding *does* your 

&gt; public have? I.e. is the name in the comment block of the key utf-8 

&gt; or iso-8859-1 encoded?

Hm, I can only guess :( It could be iso-8859-2 :-o



&gt; And how did you get that key in the first place?

From http://thawte.com



&gt; Did you export it from somewhere?

From Thunderbird.



&gt; Did you create it on the 

&gt; command line? If so, how?

I created it through thawte&#039;s web interface...</description> 
   <pubDate>Tue, 26 Feb 2008 14:27:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6252#t43100</link> 
  </item> 
   
  <item> 
   <title>With the RC2 the situation is the same...</title> 
   <description>With the RC2 the situation is the same...</description> 
   <pubDate>Tue, 26 Feb 2008 14:31:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6252#t43101</link> 
  </item> 
   
  <item> 
   <title>Eh, mea culpa.



I created a db with the &quot;createdb --encodi</title> 
   <description>Eh, mea culpa.



I created a db with the &quot;createdb --encoding=UNICODE --owner horde horde&quot; command.



And the --encoding=UNICODE was wrong...



Now I dropped it and created the database without &quot;--encoding=UNICODE&quot; and everything is fine.



Sorry.

</description> 
   <pubDate>Tue, 26 Feb 2008 15:05:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6252#t43103</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
