# change installed certificate for webfrontend 4.6 /CentOS 7.8

**URL:** <https://community.ciphermail.com/t/change-installed-certificate-for-webfrontend-4-6-centos-7-8/698>\
**Category:** Gateway\
**Created:** [May 20, 2020, 12:44pm UTC](https://community.ciphermail.com/t/change-installed-certificate-for-webfrontend-4-6-centos-7-8/698 "2020-05-20T12:44:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Testuser\_SST](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@Testuser\_SST](https://community.ciphermail.com/u/Testuser_SST)\
**Post date:** [May 20, 2020, 12:44pm UTC](https://community.ciphermail.com/t/change-installed-certificate-for-webfrontend-4-6-centos-7-8/698/1 "2020-05-20T12:44:22Z")

</div>

Hi,

I'm using djigzo 4.6 with postgresql on an fully patched CentOS 7.8  
When I try to change the installed certificate for the webadmin-frontend, I get the following messages:

There was an error uploading the PKCS#12 file. Cause: Cannot run program "/usr/share/tomcat/scripts/execute-script-no-root.sh": error=2, No such file or directory

Problem is, there is no "scripts"-folder under /usr/share/tomcat/ .

How do I resolve the problem ?

Any suggestions are welcome

Best regards

fatcharly

---

<div class="post-metadata">

**Author:** ![martijn](https://dub1.discourse-cdn.com/flex017/user_avatar/community.ciphermail.com/martijn/32/127_2.png) [@martijn](https://community.ciphermail.com/u/martijn)\
**Post date:** [May 20, 2020, 12:58pm UTC](https://community.ciphermail.com/t/change-installed-certificate-for-webfrontend-4-6-centos-7-8/698/2 "2020-05-20T12:58:58Z")

</div>

The most likely reason this happens is that djigzo.home parameter is not  
set for Tomcat.

check whether /etc/sysconfig/tomcat contains the following line:

JAVA\_OPTS="-Ddjigzo-web.home=/usr/share/djigzo-web  
-Ddjigzo.home=/usr/share/djigzo -Djava.awt.headless=true -Xmx128M  
-Djdk.tls.ephemeralDHKeySize=2048"

Note: djigzo.home should point to the directory where the back-end is  
installed

If this is not configured, you can configure this with the following  
commmand (copied from  
[RedHat/CentOS — CipherMail Documentation](https://www.ciphermail.com/documentation/installguide/pages/redhat-centos.html)):

echo "JAVA\_OPTS=\"-Ddjigzo-web.home=/usr/share/djigzo-web \  
-Ddjigzo.home=/usr/share/djigzo \  
-Djava.awt.headless=true -Xmx128M\"" \>\> /etc/sysconfig/tomcat

Then restart Tomcat

Kind regards,

Martijn Brinkers

> **···**
>
> On 20-05-2020 14:44, fatcharly via Users wrote:
> 
> > I'm using djigzo 4.6 with postgresql on an fully patched CentOS 7.8  
> > When I try to change the installed certificate for the webadmin-frontend, I get the following messages:
> > 
> > There was an error uploading the PKCS#12 file. Cause: Cannot run program "/usr/share/tomcat/scripts/execute-script-no-root.sh": error=2, No such file or directory
> > 
> > Problem is, there is no "scripts"-folder under /usr/share/tomcat/ .
> > 
> > How do I resolve the problem ?
> 
> --  
> CipherMail email encryption  
> Email encryption with support for S/MIME,  
> OpenPGP, PDF encryption and secure webmail pull.
> 
> W: [https://www.ciphermail.com/](https://www.ciphermail.com/)  
> E: info(a)ciphermail.com  
> T: +31 20 290 0088
