<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Hi Stefan,<br></div><div><br data-mce-bogus="1"></div><div>Here is what I did :<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>- Enable securemail zimlet in Zimbra preferences<br data-mce-bogus="1"></div><div>- Generate a comodo personnal cert from here: https://secure.comodo.com/products/frontpage?area=SecureEmailCertificate<br data-mce-bogus="1"></div><div>- Download / Install my personal cert in Firefox. Export my personal cert from Firefox keystore to file.<br data-mce-bogus="1"></div><div>- Upload my personal cert in Zimbra Preferences / Secure Email. <strong>Verification fail</strong><br data-mce-bogus="1"></div><div>- Search Google for Comodo root and intermediate certs which led me here: https://support.comodo.com/index.php?/Knowledgebase/Article/View/320/17/can-i-download-your-intermediate-and-root-certificates<br></div><div>and here : https://support.comodo.com/index.php?/comodo/Knowledgebase/List/Index/75/instantsslenterprisesslintranetssl<br data-mce-bogus="1"></div><div>and there : https://support.comodo.com/index.php?/Knowledgebase/List/Index/71<br data-mce-bogus="1"></div><div>- I downloaded and added all root and intermediate #1 and #2 certs<br data-mce-bogus="1"></div><div>- I added those certs to the keystore and check with keytool that they were correctly imported in the keystore<br>- I restarted mailboxd<br data-mce-bogus="1"></div><div>- Upload my personal cert again in Zimbra Preferences / Secure Email. <strong>Still fails</strong></div><div data-marker="__SIG_PRE__"><br data-mce-bogus="1"></div><div data-marker="__SIG_PRE__">I have also tried to cat comodorsaaddtrustca.crt comodosha256clientauthenticationandsecureemailca.crt &gt; ca_cert_and_chain.crt then /opt/zimbra/bin/zmcertmgr addcacert /tmp/COMODO/ca_cert_and_chain.crt<br></div><div data-marker="__SIG_PRE__"><strong>Still fails</strong>.<br data-mce-bogus="1"></div><div data-marker="__SIG_PRE__"><br data-mce-bogus="1"></div><div data-marker="__SIG_PRE__">Regards,<br data-mce-bogus="1"></div><div data-marker="__SIG_PRE__"><br>Frédéric.<br></div><br><span id="zwchr" data-marker="__DIVIDER__">----- Le 17 Mai 18, à 10:09, Stefan Sänger &lt;stefan.saenger@gr13.net&gt; a écrit :<br></span><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">Hi Frederic,<br><br>are you importing only the root certificate or the complete chain <br>(without your personal certificate) ?<br><br><br>best regards,<br><br>Stefan<br><br>Am 17.05.2018 um 10:06 schrieb Frédéric Nass:<br>&gt; <br>&gt; Thanks for all these informations Barry. I have root access and I could <br>&gt; add certs to the keystore but verification still fails when uploading my <br>&gt; personnal cert in Zimbra preferences (because the verification against <br>&gt; all Comodo certs that I add to the keystore still fails).<br>&gt; <br>&gt; I used "zmcertmgr addcacert /tmp/comodo.crt" that uses keytool to import <br>&gt; certificate to the keystore. It must be equivalent to "keytool -import <br>&gt; -alias xxxxxxx -keystore <br>&gt; /opt/zimbra/common/lib/jvm/java/jre/lib/security/cacerts -storepass <br>&gt; changeit -file /tmp/comodo.crt"<br>&gt; <br>&gt; Frédéric.<br>&gt; <br>&gt; <br>&gt; ----- Le 17 Mai 18, à 9:33, Barry de Graaff &lt;info@barrydegraaff.tk&gt; a <br>&gt; écrit :<br>&gt; <br>&gt; &nbsp; &nbsp; Ahh, AFAIK you do not have to concatenate them.<br>&gt; <br>&gt; &nbsp; &nbsp; Instead you can add all required intermediates to the store,<br>&gt; &nbsp; &nbsp; you need to restart zimbra for the changes to be loaded.<br>&gt; <br>&gt; &nbsp; &nbsp; I do not use S/MIME so I cannot give the exact example, but<br>&gt; &nbsp; &nbsp; for trusting a CA using intermediates I do:<br>&gt; <br>&gt; &nbsp; &nbsp; wget<br>&gt; &nbsp; &nbsp; https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem.txt<br>&gt; &nbsp; &nbsp; -O lets.pem<br>&gt; &nbsp; &nbsp; &nbsp;&nbsp;/opt/zimbra/common/bin/keytool -import -alias letsenc-ca -keystore<br>&gt; &nbsp; &nbsp; /opt/zimbra/common/etc/java/cacerts -storepass changeit -file<br>&gt; &nbsp; &nbsp; /root/lets.pem<br>&gt; <br>&gt; &nbsp; &nbsp; So the trick there is to get the proper .pem from you CA and import<br>&gt; &nbsp; &nbsp; that into<br>&gt; &nbsp; &nbsp; the keystore.<br>&gt; <br>&gt; &nbsp; &nbsp; You can also create a new keystore and put that in<br>&gt; &nbsp; &nbsp; smime_truststore variable.<br>&gt; <br>&gt; &nbsp; &nbsp; You write you cannot add a cert to the store, do you not have root<br>&gt; &nbsp; &nbsp; access?<br>&gt; <br>&gt; <br>&gt; &nbsp; &nbsp; Kind regards,<br>&gt; <br>&gt; &nbsp; &nbsp; Barry de Graaff<br>&gt; &nbsp; &nbsp; Zeta Alliance<br>&gt; &nbsp; &nbsp; Co-founder &amp; Developer<br>&gt; &nbsp; &nbsp; zetalliance.org | github.com/Zimbra-Community<br>&gt; <br>&gt; &nbsp; &nbsp; +31 617 220 227 | skype: barrydegraaff.tk<br>&gt; &nbsp; &nbsp; Fingerprint: 97f4694a1d9aedad012533db725ddd156d36a2d0<br>&gt; <br>&gt; &nbsp; &nbsp; ----- Original Message -----<br>&gt; &nbsp; &nbsp; From: "Frédéric Nass" &lt;frederic.nass@univ-lorraine.fr&gt;<br>&gt; &nbsp; &nbsp; To: "Barry de Graaff" &lt;info@barrydegraaff.tk&gt;<br>&gt; &nbsp; &nbsp; Cc: "users" &lt;users@lists.zetalliance.org&gt;<br>&gt; &nbsp; &nbsp; Sent: Thursday, May 17, 2018 9:26:18 AM<br>&gt; &nbsp; &nbsp; Subject: Re: [Users] New 8.7.5 Securemail Zimlet<br>&gt; <br>&gt; &nbsp; &nbsp; Hi Barry,<br>&gt; <br>&gt; &nbsp; &nbsp; I have no idea.<br>&gt; <br>&gt; &nbsp; &nbsp; Actually, Zimbra provides a keystore for smime certs validation. But<br>&gt; &nbsp; &nbsp; it's empty from any trusty external CA.<br>&gt; <br>&gt; &nbsp; &nbsp; [zimbra@test-zimbra ~]$ zmlocalconfig | grep -E 'keystore|smime'<br>&gt; &nbsp; &nbsp; imapd_keystore = /opt/zimbra/conf/imapd.keystore<br>&gt; &nbsp; &nbsp; imapd_keystore_password = *<br>&gt; &nbsp; &nbsp; mailboxd_keystore = /opt/zimbra/mailboxd/etc/keystore<br>&gt; &nbsp; &nbsp; mailboxd_keystore_base = ${zimbra_home}/conf/keystore.base<br>&gt; &nbsp; &nbsp; mailboxd_keystore_base_password = *<br>&gt; &nbsp; &nbsp; mailboxd_keystore_password = *<br>&gt; &nbsp; &nbsp; smime_truststore = ${mailboxd_truststore}<br>&gt; &nbsp; &nbsp; smime_truststore_password = *<br>&gt; <br>&gt; &nbsp; &nbsp; [zimbra@test-zimbra ~]$ keytool -list -keystore<br>&gt; &nbsp; &nbsp; /opt/zimbra/common/lib/jvm/java/jre/lib/security/cacerts -storepass<br>&gt; &nbsp; &nbsp; changeit<br>&gt; <br>&gt; &nbsp; &nbsp; Keystore type: JKS<br>&gt; &nbsp; &nbsp; Keystore provider: SUN<br>&gt; <br>&gt; &nbsp; &nbsp; Your keystore contains 183 entries<br>&gt; <br>&gt; &nbsp; &nbsp; tmp/rhel7_64/rdjz3bwn1d/eq0xx_t6fv.der, Feb 12, 2016, trustedCertEntry,<br>&gt; &nbsp; &nbsp; Certificate fingerprint (SHA1):<br>&gt; &nbsp; &nbsp; 85:37:1C:A6:E5:50:14:3D:CE:28:03:47:1B:DE:3A:09:E8:F8:77:0F<br>&gt; &nbsp; &nbsp; tmp/rhel7_64/rdjz3bwn1d/gpzzm9h5_7.der, Feb 12, 2016, trustedCertEntry,<br>&gt; &nbsp; &nbsp; Certificate fingerprint (SHA1):<br>&gt; &nbsp; &nbsp; 8C:96:BA:EB:DD:2B:07:07:48:EE:30:32:66:A0:F3:98:6E:7C:AE:58<br>&gt; &nbsp; &nbsp; tmp/rhel7_64/rdjz3bwn1d/csuq6zjk4u.der, Feb 12, 2016, trustedCertEntry,<br>&gt; &nbsp; &nbsp; ...<br>&gt; &nbsp; &nbsp; Certificate fingerprint (SHA1):<br>&gt; &nbsp; &nbsp; AE:C5:FB:3F:C8:E1:BF:C4:E5:4F:03:07:5A:9A:E8:00:B7:F7:B6:FA<br>&gt; &nbsp; &nbsp; my_ca, Mar 21, 2018, trustedCertEntry,<br>&gt; &nbsp; &nbsp; ...<br>&gt; &nbsp; &nbsp; Certificate fingerprint (SHA1):<br>&gt; &nbsp; &nbsp; D1:EB:23:A4:6D:17:D6:8F:D9:25:64:C2:F1:F1:60:17:64:D8:E3:49<br>&gt; &nbsp; &nbsp; tmp/rhel7_64/rdjz3bwn1d/ja63m4kjkn.der, Feb 12, 2016, trustedCertEntry,<br>&gt; &nbsp; &nbsp; Certificate fingerprint (SHA1):<br>&gt; &nbsp; &nbsp; 48:12:BD:92:3C:A8:C4:39:06:E7:30:6D:27:96:E6:A4:CF:22:2E:7D<br>&gt; &nbsp; &nbsp; tmp/rhel7_64/rdjz3bwn1d/0wpwao5qj3.der, Feb 12, 2016, trustedCertEntry,<br>&gt; &nbsp; &nbsp; Certificate fingerprint (SHA1):<br>&gt; &nbsp; &nbsp; 28:90:3A:63:5B:52:80:FA:E6:77:4C:0B:6D:A7:D6:BA:A6:4A:F2:E8<br>&gt; &nbsp; &nbsp; tmp/rhel7_64/rdjz3bwn1d/8afyoy3e6h.der, Feb 12, 2016, trustedCertEntry,<br>&gt; &nbsp; &nbsp; etc.<br>&gt; <br>&gt; &nbsp; &nbsp; But no Comodo, Verisign, etc...<br>&gt; <br>&gt; &nbsp; &nbsp; I added all the certs from<br>&gt; &nbsp; &nbsp; https://support.comodo.com/index.php?/Knowledgebase/List/Index/71 to<br>&gt; &nbsp; &nbsp; the<br>&gt; &nbsp; &nbsp; keystore. But verification still fails when uploading personal certs.<br>&gt; <br>&gt; &nbsp; &nbsp; Prabhat Kumar on comment 3 of bugzilla report says "Need to add<br>&gt; &nbsp; &nbsp; intermediate as well of the s/mime certificate."<br>&gt; &nbsp; &nbsp; Which I did, but still no success.<br>&gt; <br>&gt; &nbsp; &nbsp; It seems to me that I should first build a cert by concatenating some<br>&gt; &nbsp; &nbsp; root and intermediate certs. But which certs in what order I have no<br>&gt; &nbsp; &nbsp; idea :-/<br>&gt; <br>&gt; &nbsp; &nbsp; Regards,<br>&gt; &nbsp; &nbsp; Frédéric.<br>&gt; <br>&gt; <br>&gt; &nbsp; &nbsp; Le 17/05/2018 à 09:04, Barry de Graaff a écrit&nbsp;:<br>&gt; &nbsp; &nbsp; &nbsp;&gt; Is this an open-source component, especially the server side part?<br>&gt; &nbsp; &nbsp; &nbsp;&gt;<br>&gt; &nbsp; &nbsp; &nbsp;&gt; If so you can look in there an see if you can use a different<br>&gt; &nbsp; &nbsp; keystore.<br>&gt; &nbsp; &nbsp; &nbsp;&gt;<br>&gt; &nbsp; &nbsp; &nbsp;&gt; Kind regards,<br>&gt; &nbsp; &nbsp; &nbsp;&gt;<br>&gt; &nbsp; &nbsp; &nbsp;&gt; Barry de Graaff<br>&gt; &nbsp; &nbsp; &nbsp;&gt; Zeta Alliance<br>&gt; &nbsp; &nbsp; &nbsp;&gt; Co-founder &amp; Developer<br>&gt; &nbsp; &nbsp; &nbsp;&gt; zetalliance.org | github.com/Zimbra-Community<br>&gt; &nbsp; &nbsp; &nbsp;&gt;<br>&gt; &nbsp; &nbsp; &nbsp;&gt; +31 617 220 227 | skype: barrydegraaff.tk<br>&gt; &nbsp; &nbsp; &nbsp;&gt; Fingerprint: 97f4694a1d9aedad012533db725ddd156d36a2d0<br>&gt; &nbsp; &nbsp; &nbsp;&gt;<br>&gt; &nbsp; &nbsp; &nbsp;&gt; ----- Original Message -----<br>&gt; &nbsp; &nbsp; &nbsp;&gt; From: "Frédéric Nass" &lt;frederic.nass@univ-lorraine.fr&gt;<br>&gt; &nbsp; &nbsp; &nbsp;&gt; To: "users" &lt;users@lists.zetalliance.org&gt;<br>&gt; &nbsp; &nbsp; &nbsp;&gt; Sent: Thursday, May 17, 2018 8:32:16 AM<br>&gt; &nbsp; &nbsp; &nbsp;&gt; Subject: [Users] New 8.7.5 Securemail Zimlet<br>&gt; &nbsp; &nbsp; &nbsp;&gt;<br>&gt; &nbsp; &nbsp; &nbsp;&gt; Hi,<br>&gt; &nbsp; &nbsp; &nbsp;&gt;<br>&gt; &nbsp; &nbsp; &nbsp;&gt; Has anyone succeded in using the new 8.7.5 securemail Zimlet<br>&gt; &nbsp; &nbsp; &nbsp;&gt; (com_zimbra_securemail)?<br>&gt; &nbsp; &nbsp; &nbsp;&gt;<br>&gt; &nbsp; &nbsp; &nbsp;&gt; Personnal certificates uploads fail unless you disable the<br>&gt; &nbsp; &nbsp; certificate<br>&gt; &nbsp; &nbsp; &nbsp;&gt; verification check or add the root CA to Zimbra keystore which I<br>&gt; &nbsp; &nbsp; can't<br>&gt; &nbsp; &nbsp; &nbsp;&gt; do. This has been explained here :<br>&gt; &nbsp; &nbsp; &nbsp;&gt; https://bugzilla.zimbra.com/show_bug.cgi?id=107887<br>&gt; &nbsp; &nbsp; &nbsp;&gt; Problem is that Zimbra does not provide any external CA keystore to<br>&gt; &nbsp; &nbsp; &nbsp;&gt; validate personnal certificates.<br>&gt; &nbsp; &nbsp; &nbsp;&gt;<br>&gt; &nbsp; &nbsp; &nbsp;&gt; There is no documentation and Zimbra support is as usual of no help.<br>&gt; &nbsp; &nbsp; &nbsp;&gt;<br>&gt; &nbsp; &nbsp; &nbsp;&gt; Regards,<br>&gt; &nbsp; &nbsp; &nbsp;&gt;<br>&gt;<br></blockquote></div></div></body></html>