# 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/699>\
**Category:** Gateway\
**Created:** [May 20, 2020, 1:56pm UTC](https://community.ciphermail.com/t/change-installed-certificate-for-webfrontend-4-6-centos-7-8/699 "2020-05-20T13:56:07Z")\
**Posts on this page:** 1\
**Page:** 1

<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, 1:56pm UTC](https://community.ciphermail.com/t/change-installed-certificate-for-webfrontend-4-6-centos-7-8/699/1 "2020-05-20T13:56:07Z")

</div>

> after setting the missing parameter I get the following messages:  
> There was an error uploading the PKCS#12 file. Cause: Error running  
> [/usr/share/djigzo/scripts/execute-script-no-root.sh,ssl,-i]. exit  
> value: 1 (1)

How did you install the gateway? Using the RPMs?

There can be a couple of reasons this fails, ymlink for the ssl script  
not created, permission problems...

Does the synlink /usr/share/djigzo/scripts/scripts.d/ssl.sh exist:

stat /usr/share/djigzo/scripts/scripts.d/ssl.sh

If so, what are the owner are permissions of the file  
/usr/share/djigzo/scripts/ssl.sh:

stat /usr/share/djigzo/scripts/ssl.sh

And what are the permissions/owner of the scripts.d dir:

stat /usr/share/djigzo/scripts/scripts.d

Kind regards,

Martijn Brinkers

> **···**
>
> On 20-05-2020 15:47, fatcharly(a)gmx.de wrote:
> 
> > > Gesendet: Mittwoch, 20. Mai 2020 um 14:58 Uhr  
> > > Von: "Martijn Brinkers via Users" \<users(a)lists.ciphermail.com\>  
> > > An: users(a)lists.ciphermail.com  
> > > Betreff: Re: change installed certificate for webfrontend 4.6 /CentOS 7.8
> > > 
> > > 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 ?
> > > 
> > > 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
> > > 
> > > --  
> > > 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  
> > > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > > Users mailing list -- users(a)lists.ciphermail.com  
> > > To unsubscribe send an email to users-leave(a)lists.ciphermail.com
> 
> --  
> 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
