KB Article #180291
apiportal_install.sh There is already a key in the given directory
Problem
Re-installing an API Portal 762, after a cleaning up procedure led to
Mon May 27 08:17:01 EDT 2019
Generate SSL certificate for apache.
There is already a key in the given directory
warning: %post(apiportal-joomla-7.6.2-1.x86_64) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package apiportal-joomla-7.6.2-1.x86_64
and the installation failed by not creating the tables in the datatabase and not starting the apache server.
Resolution
The resolution was to clean up the certificate and the key from the previous installation.
rm /etc/httpd/conf/server.crt;
find /etc/ -type f -iname *.key
/etc/pki/tls/private/localhost.key
/etc/trusted-key.key
/etc/unbound/dlv.isc.org.key
/etc/unbound/root.key
/etc/httpd/conf/server.key
[root@tamron2470 portal762]# rm /etc/httpd/conf/server.key
rm: remove regular file ‘/etc/httpd/conf/server.key’? Y
Doing so, the installation completed ok.