<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									ERROR: openssl pkcs12 export to &#039;/opt/zimbra/ssl/zimbra/jetty.pkcs12&#039; failed(1): - Zimbra OSE - How to &amp; Setup				            </title>
            <link>https://community.zextras.com/forum/zimbra-ose-howto/error-openssl-pkcs12-export-to-opt-zimbra-ssl-zimbra-jetty-pkcs12-failed1/</link>
            <description>Zextras Community Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Wed, 12 Aug 2026 06:06:50 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: ERROR: openssl pkcs12 export to &#039;/opt/zimbra/ssl/zimbra/jetty.pkcs12&#039; failed(1):</title>
                        <link>https://community.zextras.com/forum/zimbra-ose-howto/error-openssl-pkcs12-export-to-opt-zimbra-ssl-zimbra-jetty-pkcs12-failed1/paged/2/#post-8290</link>
                        <pubDate>Fri, 12 Jul 2024 16:59:01 +0000</pubDate>
                        <description><![CDATA[@nico35 Hi! have you solved this? I have the same error. Thanks.]]></description>
                        <content:encoded><![CDATA[@nico35 Hi! have you solved this? I have the same error. Thanks.]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/zimbra-ose-howto/">Zimbra OSE - How to &amp; Setup</category>                        <dc:creator>dhcmega</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/zimbra-ose-howto/error-openssl-pkcs12-export-to-opt-zimbra-ssl-zimbra-jetty-pkcs12-failed1/paged/2/#post-8290</guid>
                    </item>
				                    <item>
                        <title>RE: ERROR: openssl pkcs12 export to &#039;/opt/zimbra/ssl/zimbra/jetty.pkcs12&#039; failed(1):</title>
                        <link>https://community.zextras.com/forum/zimbra-ose-howto/error-openssl-pkcs12-export-to-opt-zimbra-ssl-zimbra-jetty-pkcs12-failed1/paged/2/#post-8108</link>
                        <pubDate>Fri, 07 Jun 2024 22:31:41 +0000</pubDate>
                        <description><![CDATA[Although  it seems like is a solved topic, I want to share my experience with this error.
My zimbra installation was 9.0.0_ZEXTRAS_20221203 on Rocky Linux 8.8, so when I was renewing  the S...]]></description>
                        <content:encoded><![CDATA[<p>Although  it seems like is a solved topic, I want to share my experience with this error.</p>
<p>My zimbra installation was 9.0.0_ZEXTRAS_20221203 on Rocky Linux 8.8, so when I was renewing  the SSL Certificate  by zmcertmgr I got the following:</p>
<p>command: /opt/zimbra/bin/zmcertmgr deploycrt comm /tmp/server.crt /tmp/ca_bundle.crt</p>
<p>ERROR: openssl pkcs12 export to '/opt/zimbra/ssl/zimbra/jetty.pkcs12' failed(1):<br />Error creating PKCS12 MAC; no PKCS12KDF support?<br />Use -nomac if MAC not required and PKCS12KDF support not available.<br />0061F3F3637F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:373:Global default library context, Algorithm (PKCS12KDF : 192), Properties (&lt;null&gt;)<br />0061F3F3637F0000:error:1180006B:PKCS12 routines:pkcs12_gen_mac:key gen error:crypto/pkcs12/p12_mutl.c:147:<br />0061F3F3637F0000:error:1180006D:PKCS12 routines:PKCS12_set_mac:mac generation error:crypto/pkcs12/p12_mutl.c:220:</p>
<p>After some search I didn't find a solution that works for me, fortunately I had a prototype server with same configuration to play a little, I downloaded  and installed the release 9.0.0_ZEXTRAS_20231104.RHEL8_64_20231124123142  after upgrade  I  issued the same command to install the new certificate, this time it worked like a charm. and after restart  zimbra I finally got my server working.</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/zimbra-ose-howto/">Zimbra OSE - How to &amp; Setup</category>                        <dc:creator>niceandclean</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/zimbra-ose-howto/error-openssl-pkcs12-export-to-opt-zimbra-ssl-zimbra-jetty-pkcs12-failed1/paged/2/#post-8108</guid>
                    </item>
				                    <item>
                        <title>RE: ERROR: openssl pkcs12 export to &#039;/opt/zimbra/ssl/zimbra/jetty.pkcs12&#039; failed(1):</title>
                        <link>https://community.zextras.com/forum/zimbra-ose-howto/error-openssl-pkcs12-export-to-opt-zimbra-ssl-zimbra-jetty-pkcs12-failed1/paged/2/#post-7849</link>
                        <pubDate>Thu, 18 Apr 2024 13:37:06 +0000</pubDate>
                        <description><![CDATA[I resolved the commercial certificate was not in the format required by zimbra]]></description>
                        <content:encoded><![CDATA[<p>I resolved the commercial certificate was not in the format required by zimbra</p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/zimbra-ose-howto/">Zimbra OSE - How to &amp; Setup</category>                        <dc:creator>Nico35</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/zimbra-ose-howto/error-openssl-pkcs12-export-to-opt-zimbra-ssl-zimbra-jetty-pkcs12-failed1/paged/2/#post-7849</guid>
                    </item>
				                    <item>
                        <title>RE: ERROR: openssl pkcs12 export to &#039;/opt/zimbra/ssl/zimbra/jetty.pkcs12&#039; failed(1):</title>
                        <link>https://community.zextras.com/forum/zimbra-ose-howto/error-openssl-pkcs12-export-to-opt-zimbra-ssl-zimbra-jetty-pkcs12-failed1/paged/2/#post-7848</link>
                        <pubDate>Thu, 18 Apr 2024 12:10:52 +0000</pubDate>
                        <description><![CDATA[hi,
i have a similar problem but my error is different. I try to distribute a commercial certificate. if I do the check the result is OK.
i I already tried changing the properties in &quot;-nom...]]></description>
                        <content:encoded><![CDATA[<p>hi,</p>
<p>i have a similar problem but my error is different. I try to distribute a commercial certificate. if I do the check the result is OK.</p>
<p>i I already tried changing the properties in "-nomac" or <span class="blob-code-inner blob-code-marker js-code-nav-pass " data-code-marker="+"><span class="pl-s"><span class="pl-pds">"</span>-<span class="x x-first">propquery</span><span class="pl-pds x">"</span></span><span class="x">,<span> </span></span><span class="pl-s"><span class="pl-pds x">"</span><span class="x x-last">-fips</span><span class="pl-pds">"</span></span></span><span> </span></p>
<p> </p>
<pre contenteditable="false">$ /opt/zimbra/bin/zmcertmgr verifycrt comm /opt/zimbra/ssl/zimbra/commercial/commercial.key /tmp/commercial.crt /tmp/ca_chain.crt
** Verifying '/tmp/commercial.crt' against '/opt/zimbra/ssl/zimbra/commercial/commercial.key'
Certificate '/tmp/commercial.crt' and private key '/opt/zimbra/ssl/zimbra/commercial/commercial.key' match.
** Verifying '/tmp/commercial.crt' against '/tmp/ca_chain.crt'
Valid certificate chain: /tmp/commercial.crt: OK
$ /opt/zimbra/bin/zmcertmgr deploycrt comm /tmp/commercial.crt /tmp/ca_chain.crt
** Fixing newlines in '/tmp/ca_chain.crt'
Can't rename /tmp/ca_chain.crt to /tmp/ca_chain.crt.bak: Operation not permitted, skipping file at /opt/zimbra/bin/zmcertmgr line 1239.
** Verifying '/tmp/commercial.crt' against '/opt/zimbra/ssl/zimbra/commercial/commercial.key'
Certificate '/tmp/commercial.crt' and private key '/opt/zimbra/ssl/zimbra/commercial/commercial.key' match.
** Verifying '/tmp/commercial.crt' against '/tmp/ca_chain.crt'
Valid certificate chain: /tmp/commercial.crt: OK
** Copying '/tmp/commercial.crt' to '/opt/zimbra/ssl/zimbra/commercial/commercial.crt'
** Copying '/tmp/ca_chain.crt' to '/opt/zimbra/ssl/zimbra/commercial/commercial_ca.crt'
** Appending ca chain '/tmp/ca_chain.crt' to '/opt/zimbra/ssl/zimbra/commercial/commercial.crt'
** Importing cert '/opt/zimbra/ssl/zimbra/commercial/commercial_ca.crt' as 'zcs-user-commercial_ca' into cacerts '/opt/zimbra/common/lib/jvm/java/lib/security/cacerts'
** NOTE: restart mailboxd to use the imported certificate.
** Saving config key 'zimbraSSLCertificate' via zmprov modifyServer mail.xxx.it...ERROR: account.INVALID_ATTR_VALUE (invalid attr value: invalid attr value - unable to modify attributes: ldap host=mail.xxx.it:389: zimbraSSLCertificate: value #0 invalid per syntax) (cause: com.zimbra.cs.ldap.LdapException$LdapInvalidAttrValueException invalid attr value - unable to modify attributes: ldap host=mail.xxx.it:389: zimbraSSLCertificate: value #0 invalid per syntax)
failed (rc=2)
** Installing imapd certificate '/opt/zimbra/conf/imapd.crt' and key '/opt/zimbra/conf/imapd.key'
** Copying '/opt/zimbra/ssl/zimbra/commercial/commercial.crt' to '/opt/zimbra/conf/imapd.crt'
** Copying '/opt/zimbra/ssl/zimbra/commercial/commercial.key' to '/opt/zimbra/conf/imapd.key'
** Creating file '/opt/zimbra/ssl/zimbra/jetty.pkcs12'
ERROR: openssl pkcs12 export to '/opt/zimbra/ssl/zimbra/jetty.pkcs12' failed(1):
No cert in -in file '/opt/zimbra/conf/imapd.crt' matches private key
8003D8AF467F0000:error:05800074:x509 certificate routines:X509_check_private_key:key values mismatch:crypto/x509/x509_cmp.c:405:
8003D8AF467F0000:error:05800074:x509 certificate routines:X509_check_private_key:key values mismatch:crypto/x509/x509_cmp.c:405:
</pre>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/zimbra-ose-howto/">Zimbra OSE - How to &amp; Setup</category>                        <dc:creator>Nico35</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/zimbra-ose-howto/error-openssl-pkcs12-export-to-opt-zimbra-ssl-zimbra-jetty-pkcs12-failed1/paged/2/#post-7848</guid>
                    </item>
				                    <item>
                        <title>RE: ERROR: openssl pkcs12 export to &#039;/opt/zimbra/ssl/zimbra/jetty.pkcs12&#039; failed(1):</title>
                        <link>https://community.zextras.com/forum/zimbra-ose-howto/error-openssl-pkcs12-export-to-opt-zimbra-ssl-zimbra-jetty-pkcs12-failed1/paged/2/#post-6158</link>
                        <pubDate>Wed, 18 Oct 2023 14:50:10 +0000</pubDate>
                        <description><![CDATA[Hai solved with this:
 
adding &quot;-propquery&quot;, &quot;-fips&quot;  (not &quot;-nomac&quot;)
 
thank you!]]></description>
                        <content:encoded><![CDATA[<p>Hai solved with this: https://github.com/Zimbra/zm-core-utils/pull/137</p>
<p> </p>
<p>adding <span class="blob-code-inner blob-code-marker js-code-nav-pass " data-code-marker="+"><span class="pl-s"><span class="pl-pds">"</span>-<span class="x x-first">propquery</span><span class="pl-pds x">"</span></span><span class="x">, </span><span class="pl-s"><span class="pl-pds x">"</span><span class="x x-last">-fips</span><span class="pl-pds">"</span></span></span>  (not "-<span class="blob-code-inner blob-code-marker js-code-nav-pass js-skip-tagsearch" data-code-marker="-"><span class="pl-s"><span class="x x-first x-last">nomac</span><span class="pl-pds"></span></span></span>")</p>
<p> </p>
<p><strong>thank you!</strong></p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/zimbra-ose-howto/">Zimbra OSE - How to &amp; Setup</category>                        <dc:creator>trigg3r</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/zimbra-ose-howto/error-openssl-pkcs12-export-to-opt-zimbra-ssl-zimbra-jetty-pkcs12-failed1/paged/2/#post-6158</guid>
                    </item>
				                    <item>
                        <title>RE: ERROR: openssl pkcs12 export to &#039;/opt/zimbra/ssl/zimbra/jetty.pkcs12&#039; failed(1):</title>
                        <link>https://community.zextras.com/forum/zimbra-ose-howto/error-openssl-pkcs12-export-to-opt-zimbra-ssl-zimbra-jetty-pkcs12-failed1/paged/2/#post-6156</link>
                        <pubDate>Wed, 18 Oct 2023 14:35:33 +0000</pubDate>
                        <description><![CDATA[@trigg3r roll up a bit... there are many messages showing the right lines you have to change.. please read the previous posts.]]></description>
                        <content:encoded><![CDATA[@trigg3r roll up a bit... there are many messages showing the right lines you have to change.. please read the previous posts.]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/zimbra-ose-howto/">Zimbra OSE - How to &amp; Setup</category>                        <dc:creator>anahuac</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/zimbra-ose-howto/error-openssl-pkcs12-export-to-opt-zimbra-ssl-zimbra-jetty-pkcs12-failed1/paged/2/#post-6156</guid>
                    </item>
				                    <item>
                        <title>RE: ERROR: openssl pkcs12 export to &#039;/opt/zimbra/ssl/zimbra/jetty.pkcs12&#039; failed(1):</title>
                        <link>https://community.zextras.com/forum/zimbra-ose-howto/error-openssl-pkcs12-export-to-opt-zimbra-ssl-zimbra-jetty-pkcs12-failed1/#post-6154</link>
                        <pubDate>Wed, 18 Oct 2023 14:24:45 +0000</pubDate>
                        <description><![CDATA[Thank al lot @anahuac!
 
How can I recognize for sure which line I have to modify?]]></description>
                        <content:encoded><![CDATA[<p>so you have to ADD that "nopac" part to make it work </p>
<p> </p>
<p>Thank <strong>al lot</strong> @anahuac!</p>
<p> </p>
<p>How can I recognize for sure which line I have to modify?</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/zimbra-ose-howto/">Zimbra OSE - How to &amp; Setup</category>                        <dc:creator>trigg3r</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/zimbra-ose-howto/error-openssl-pkcs12-export-to-opt-zimbra-ssl-zimbra-jetty-pkcs12-failed1/#post-6154</guid>
                    </item>
				                    <item>
                        <title>RE: ERROR: openssl pkcs12 export to &#039;/opt/zimbra/ssl/zimbra/jetty.pkcs12&#039; failed(1):</title>
                        <link>https://community.zextras.com/forum/zimbra-ose-howto/error-openssl-pkcs12-export-to-opt-zimbra-ssl-zimbra-jetty-pkcs12-failed1/#post-6153</link>
                        <pubDate>Wed, 18 Oct 2023 14:13:44 +0000</pubDate>
                        <description><![CDATA[@trigg3r Ok... so you have to ADD that &quot;nopac&quot; part to make it work]]></description>
                        <content:encoded><![CDATA[@trigg3r Ok... so you have to ADD that "nopac" part to make it work]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/zimbra-ose-howto/">Zimbra OSE - How to &amp; Setup</category>                        <dc:creator>anahuac</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/zimbra-ose-howto/error-openssl-pkcs12-export-to-opt-zimbra-ssl-zimbra-jetty-pkcs12-failed1/#post-6153</guid>
                    </item>
				                    <item>
                        <title>RE: ERROR: openssl pkcs12 export to &#039;/opt/zimbra/ssl/zimbra/jetty.pkcs12&#039; failed(1):</title>
                        <link>https://community.zextras.com/forum/zimbra-ose-howto/error-openssl-pkcs12-export-to-opt-zimbra-ssl-zimbra-jetty-pkcs12-failed1/#post-6147</link>
                        <pubDate>Wed, 18 Oct 2023 12:57:18 +0000</pubDate>
                        <description><![CDATA[Ho questo problema su una installazione Zimbra 9.0.0_ZEXTRAS_20220713 (build 20220705100434)
Solo che il mio file /opt/zimbra/bin/zmcertmgr  non contiene la parola &quot;nomac&quot; :\
 
Ho provato...]]></description>
                        <content:encoded><![CDATA[<p>Ho questo problema su una installazione Zimbra 9.0.0_ZEXTRAS_20220713 (build 20220705100434)</p>
<p>Solo che il mio file /opt/zimbra/bin/zmcertmgr  non contiene la parola "nomac" :\</p>
<p> </p>
<p>Ho provato a reinstallare Zimbra: tutto va a buon fine ma il problema rimane.</p>
<p> </p>
<p>Ho provato a scaricare e reinstallare zextras-theme-ubuntu.tgz e ottendo un errore sul deploy:<br /><br /></p>
<pre contenteditable="false">su - zimbra -c 'zmskindeploy /opt/zimbra/jetty/webapps/zimbra/skins/zextras/'</pre>
<pre contenteditable="false">ERROR: zclient.IO_ERROR (invoke PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed, server: localhost) (cause: javax.net.ssl.SSLHandshakeException PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed)</pre>
<p> </p>
<p>Sono fermo con il server ... mi potete aiutare??</p>
<p> </p>
<p>Grazie</p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/zimbra-ose-howto/">Zimbra OSE - How to &amp; Setup</category>                        <dc:creator>trigg3r</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/zimbra-ose-howto/error-openssl-pkcs12-export-to-opt-zimbra-ssl-zimbra-jetty-pkcs12-failed1/#post-6147</guid>
                    </item>
				                    <item>
                        <title>RE: ERROR: openssl pkcs12 export to &#039;/opt/zimbra/ssl/zimbra/jetty.pkcs12&#039; failed(1):</title>
                        <link>https://community.zextras.com/forum/zimbra-ose-howto/error-openssl-pkcs12-export-to-opt-zimbra-ssl-zimbra-jetty-pkcs12-failed1/#post-5781</link>
                        <pubDate>Tue, 12 Sep 2023 18:07:47 +0000</pubDate>
                        <description><![CDATA[@mrom 
Thanks, this solution worked for me!!  with bellow configuration
Linux  4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Ubuntu 18.04.5...]]></description>
                        <content:encoded><![CDATA[
<p>Patch your <strong>/opt/zimbra/bin/zmcertmgr</strong> and add the <strong>-nomac</strong> param:</p>
<pre contenteditable="false">   1817         @out = $self-&gt;run(
   1818             $self-&gt;Openssl, "pkcs12", "-inkey", $keyf,
   1819             "-in",          $crtf,    "-name",  $server,
   1820             "-export",      "-out",   $pkcsf,   "-passout",
   1821             "pass:$kpass", "-nomac", "2&gt;&amp;1"
   1822         );</pre>
<pre contenteditable="false">   1878         @out = $self-&gt;run(
   1879             $self-&gt;Openssl, "pkcs12", "-inkey", $keyf,
   1880             "-in",          $crtf,    "-name",  $server,
   1881             "-export",      "-out",   $pkcsf,   "-passout",
   1882             "pass:$kpass", "-nomac", "2&gt;&amp;1"
   1883         );</pre>
<p></p>
<p> </p>
<p><a title="mrom" href="https://community.zextras.com/participant/mrom/">@mrom</a> </p>
<p>Thanks, this solution worked for me!!  with bellow configuration</p>
<p>Linux  4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux</p>
<p>Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-112-generic x86_64)</p>
<p>Release 9.0.0.ZEXTRAS.20221203.UBUNTU18.64 UBUNTU18_64 FOSS edition.</p>
<p>Thanks for the solution, life saving. </p>
<p> </p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/zimbra-ose-howto/">Zimbra OSE - How to &amp; Setup</category>                        <dc:creator>fosiul</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/zimbra-ose-howto/error-openssl-pkcs12-export-to-opt-zimbra-ssl-zimbra-jetty-pkcs12-failed1/#post-5781</guid>
                    </item>
							        </channel>
        </rss>
		