How to fix annoying Zimbra certificate error || Deploy selfsigned certificate in Zimbra
Issue:
ERROR: zclient.IO_ERROR (invoke sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target, server: localhost) (cause: javax.net.ssl.SSLHandshakeException sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.ce
rtpath.SunCertPathBuilderException: unable to find valid certification path to requested target).
1. Create and deploy selfsigned certificate – Run as zimbra user:
[root@mail zimbra]$ /opt/zimbra/bin/zmcertmgr createca -new
[root@mail zimbra]$ /opt/zimbra/bin/zmcertmgr deployca
[root@mail zimbra]$ /opt/zimbra/bin/zmcertmgr createcrt -new -days 365
[root@mail zimbra]$ /opt/zimbra/bin/zmcertmgr deploycrt self
2. Verify Deployed certificate:
[root@mail zimbra]$ /opt/zimbra/bin/zmcertmgr viewdeployedcrt
3. Restart Zimbra services:
[zimbra@mail ~]$ zmcontrol restart
ERROR: zclient.IO_ERROR (invoke sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target, server: localhost) (cause: javax.net.ssl.SSLHandshakeException sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.ce
rtpath.SunCertPathBuilderException: unable to find valid certification path to requested target).
Solution:
1. Create and deploy selfsigned certificate – Run as zimbra user:
[root@mail zimbra]$ /opt/zimbra/bin/zmcertmgr createca -new
[root@mail zimbra]$ /opt/zimbra/bin/zmcertmgr deployca
[root@mail zimbra]$ /opt/zimbra/bin/zmcertmgr createcrt -new -days 365
[root@mail zimbra]$ /opt/zimbra/bin/zmcertmgr deploycrt self
2. Verify Deployed certificate:
[root@mail zimbra]$ /opt/zimbra/bin/zmcertmgr viewdeployedcrt
3. Restart Zimbra services:
[zimbra@mail ~]$ zmcontrol restart
Ref:
Comments
Post a Comment