Image

1. On the Apache web server

First you need to determine where the files are located: the key and certificate that are created by default, the base certificate is self-signed, we need to replace these files and restart the web server.

It is enough to replace the standard files key and crt

/etc/httpd/conf.d/ssl.conf

SSLCertificateFile /etc/pki/tls/certs/domain_tld.crt
SSLCertificateChainFile /etc/pki/tls/certs/server-chain.crt
SSLCertificateKeyFile /etc/pki/tls/private/domain_tld.key

After replacing the files, restart the service:

service httpd restart

2. On the Nginx web server

View the paths in the parameters in the configuration file of the domain

/etc/nginx/conf.d/host_tld.conf

ssl_certificate /etc/ssl/domain_tld/cert.crt;
ssl_certificate_key /etc/ssl/domain_tld/cert.key;

After replacing the files, restart the service:

service nginx restart
Image