diff --git a/admin/templates/default/mailaccount.xet b/admin/templates/default/mailaccount.xet
index 191c41f00a..98a0cbb688 100644
--- a/admin/templates/default/mailaccount.xet
+++ b/admin/templates/default/mailaccount.xet
@@ -310,12 +310,12 @@
-
-
+
+
-
+
diff --git a/api/src/Mail/Smime.php b/api/src/Mail/Smime.php
index ceed21b08b..3d3f9037b3 100644
--- a/api/src/Mail/Smime.php
+++ b/api/src/Mail/Smime.php
@@ -158,9 +158,11 @@ class Smime extends Horde_Crypt_Smime
*/
public function extractCertPKCS12 ($pkcs12, $passphrase = '')
{
- $certs = array ();
+ $certs = $out = array ();
if (openssl_pkcs12_read($pkcs12, $certs, $passphrase))
{
+ openssl_pkey_export($certs['pkey'], $out, $passphrase);
+ $certs['pkey'] = $out;
return $certs;
}
else