The Apache web server is used on Astra Linux Special Edition.
To replace the SSL certificate of a cluster node with the Apache web server:
/root
directory.cd /var/opt/kaspersky/ksmg/certs
cp -p webapi.crt webapi.crt.backup
cp -p webapi.key webapi.key.backup
cp -p webapi-with-dhparam.crt webapi-with-dhparam.crt.backup
cat /root/cert.pem > webapi.crt
cat /root/key.pem > webapi.key
openssl dhparam -out dhparam.pem 4096
Generating DH parameters may take 10 to 20 minutes. Wait for the operation to finish.
cat webapi.crt dhparam.pem > webapi-with-dhparam.crt
chown root:root webapi.crt
chmod 644 webapi.crt
chown kluser:root webapi.key
chmod 600 webapi.key
chown root:root dhparam.pem
chmod 644 dhparam.pem
chown root:root webapi-with-dhparam.crt
chmod 644 webapi-with-dhparam.crt
systemctl restart apache2
systemctl status apache2
The service must have the running status.
/root
directory:rm -f /root/cert.pem /root/key.pem
The SSL certificate of the cluster node is replaced. If you want to replace certificates on multiple cluster nodes, you must follow the step-by-step instruction on each node.
Page top