This guide explains how to install an SSL certificate issued through ClouDNS on an Apache web server. The instructions cover Actalis, RapidSSL, and Sectigo certificates, including the intermediate certificates required to serve a complete certificate chain.
Download your SSL certificate from the ClouDNS web panel. The certificate file will typically be named:
your-domain.com.crt |
Apache must also serve the correct intermediate certificate chain. Select the Certificate Authority (CA) that issued your SSL certificate to view its download and installation instructions.
After creating |
Move the private key generated with your Certificate Signing Request (CSR) to a secure directory. For example:
/etc/ssl/ssl.key/server.key |
Move the full certificate chain created in Step 1 to the certificate directory. For example:
/etc/ssl/ssl.crt/your-domain.com.fullchain.pem |
| Security: The private key must have restricted filesystem permissions and must never be stored in a publicly accessible web directory or shared with unauthorized users. |
Note: Certificate and private key locations vary between Linux distributions and server configurations. Use the paths appropriate for your system, and make sure Apache can read the necessary files.
Open the Apache SSL VirtualHost configuration with your preferred text editor, such as nano, vim, Notepad or Notepad++.
Typical configuration locations include:
| Distribution | Common configuration paths |
|---|---|
| Fedora / CentOS / RHEL | /etc/httpd/conf/httpd.conf/etc/httpd/conf.d/ssl.conf |
| Debian / Ubuntu | /etc/apache2/apache2.conf/etc/apache2/sites-available//etc/apache2/sites-enabled/ |
The SSL VirtualHost may be defined in a separate file that is included from the main Apache configuration. If you are unsure where it is located, look for the Include and IncludeOptional directives.
For more information, see the official Apache mod_ssl documentation.
For Apache 2.4.8 and newer, the server certificate and its intermediate certificates can be included in the same fullchain file.
Add or update these directives inside the correct HTTPS VirtualHost:
SSLEngine on
SSLCertificateKeyFile /etc/ssl/ssl.key/server.key
SSLCertificateFile /etc/ssl/ssl.crt/your-domain.com.fullchain.pem
| Apache 2.4.8 and newer
You do not need a separate |
If you are using an older Apache version that requires a separate chain file, configure the domain certificate and intermediate certificates separately according to that version's documentation.
Before reloading the web server, check the Apache configuration for errors:
apachectl configtest
When the result is Syntax OK, reload the appropriate Apache service.
Debian / Ubuntu:
systemctl reload apache2
CentOS / RHEL / Fedora:
systemctl reload httpd
| Verify your installation
Visit You can also inspect the certificates presented by the server with OpenSSL:
|
If your website is hosted on multiple web servers, you normally do not need a separate SSL certificate for each server. The same SSL certificate and its corresponding private key can be installed on every server hosting a domain name covered by that certificate.
Download the certificate from the ClouDNS web panel and obtain the appropriate Actalis, RapidSSL or Sectigo certificate chain using Step 1. Securely copy the fullchain file and the private key originally used to create the CSR to each server, and repeat the Apache configuration procedure.
For a Wildcard SSL certificate, the wildcard hostname must be included in the certificate, for example:
*.domain.com |
| Important: If your private key is password-protected, Apache may request the password at startup or restart. The service cannot complete startup until the password is provided. |
Apache configuration file names and directory structures depend on the operating system and distribution. Common files include httpd.conf, apache2.conf and ssl.conf. Individual websites may also have their own VirtualHost configuration files under directories such as sites-available and sites-enabled.
Refer to the documentation for your operating system and Apache installation to confirm the correct file locations before making changes.