How to connect to databa<x>se using NaviCat MySQL client
Table of the most frequent errors in FTP clients
What permissions should be used for uploading files?
Install Apache and PHP on CentOS 7
How to Connect to a Remote Server via SSH from Windows Linux or Mac
What virtualization technology is set up on VPS?
Proxmox vs. Hyper-V: How to Choose?
21 Server Security Tips to Secure Your Server
What is the difference between Shared Hosting and Dedicated server
Resetting Dedicated server root password via Virtual Console
IIS 10: Moving an SSL Certificate to Another Server
Installing an SSL certificate on Apache
Installing an SSL Certificate on IIS 7
HTTP to HTTPS redirection on IIS
The difference between SSL and TLS
What Is a Broadcast IP Address?
How can I see and change the geolocation information about an IPv4 address block?
How do I know that the IPv4 addresses are clean and not on any blacklists?
2024-03-07 01:07:38
If you have an RHEL-based Linux distro (CentOS, RedHat, etc.), go here: SSL Certificate installation on httpd.
If you are not sure which Linux distro you have or which version of Apache is being used, run one of the following commands:
httpd -S
or apachectl -S
(httpd
is an Apache package for RHEL-based Linux Distros, whereas apachectl
is for Debian-based systems).
If the “Command not found” message
is shown, try another option. The command that gives you an output with the server setup details will determine your distro and Apache type. Once you figure out which type you have, head to the corresponding installation guide.
Before starting the installation, the certificate files should be uploaded to the server. There are a number of ways to upload SSL files to the server. In this guide, we will mention the two most popular methods: FTP and manual upload via SSH.
FTP
FTP protocol can be used to transfer files to the server.
It’s recommended that you place the certificate files in the same directory, so that you will not lose them. For example, you can place them in the following location: /etc/ssl
If you experience any issues during the FTP connection or file upload, check out our range of FTP guides.
Manual upload via SSH
You can manually create a file on your server and paste the necessary SSL contents over SSH.
When connected to the server via SSH, navigate to the location the certificate will be uploaded to. We recommend gathering all of the files in one directory, so that you will not lose them. For example, you can place them in the following location: /etc/ssl
After that, you need to create an empty file. Usually, the commands cat yourfilename
, touch yourfilename
, nano yourfilename
or vim yourfilename
can be used for this purpose.
Once the empty file is created and opened for editing, please copy the SSL file contents from your local machine and paste them to the opened file. Make sure to save the file when you’re done.
To check the contents of the SSL files on your PC or Mac, you can drag and drop them to Notepad (if on Windows) or open them using TextEdit (if on macOS).
Windows:
macOS:
Press “Control” key click on the file:
As an example, let’s take a look at creating a file via command cat
. You can create files on the server and paste in contents by entering the following command:
cat >> filename
For example, let’s create our certificate file on the server:
When the command is entered, paste the certificate code into the terminal/SSH client.
Ensure there’s no empty line at the end and press CTRL+D to save the file.
You can check the contents of the newly created command by typing the next command:
cat filename
You may repeat the process with the CA Bundle file and the Private key file (if the CSR code and Private key were generated in another place, not on this server, and you need to move the Private key to the server manually).