45 F
Nashville
Thursday, November 21, 2024

How to Install the Apache Web Server on CentOS 9

Apache is available within CentOS's default software repositories, which means you can install it with yum.

How to Create Users in Linux

Linux is a multi-user system, meaning that more than one person can interact with the same system simultaneously.

How to Create Bash Aliases

This tutorial demonstrates how to use the alias command to create personalized shortcuts, which can help you save time and feel less frustrated.

Manually Install an SSL Certificate on CentOS 9

How do I install a GoDaddy DV SSL certificate?

Connect to your remote system using SSH

In the terminal, type the following command

openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csr

Replace yourdomain with the domain name you’re securing.

Enter the requested information.

Open the CSR in a text editor and copy all of the text.

Paste the full CSR into the SSL enrollment form in your account.

Next, prove domain control. Multiple options are provided. I chose adding a TXT record to the DNS.

Go to your GoDaddy product page and select ssl certificates and manage. Next, select server type and download zip file under download certificate.

On CentOS, the SSL directory should be

To store your certificate

to /etc/pki/tls/certs directory

Save your private keys

to /etc/pki/tls/private directory

Next, find the apache virtual hosts conf file for your domain

Here is an example configuration:

<VirtualHost *:443>

DocumentRoot /var/www/yourdomain

ServerName yourdomain.com

SSLEngine on

SSLCertificateFile /path/to/yourdomain.crt

SSLCertificateKeyFile /path/to/privatekey.key

SSLCertificateChainFile /path/to/intermediate.crt

</VirtualHost>

Run the following command to check your Apache configuration file for errors:

apachectl configtest

Similar Articles

- A word from our sponsors -

Follow Us

Most Popular