Installing an SSL certificate on Apache

Installing an SSL certificate on Apache

14:25, 29.09.2021

Artikel Inhalt
arrow

  • What you need to install an SSL certificate
  • How to install an SSL certificate on Apache Ubuntu?
  • Installation Control

What you need to install an SSL certificate

To install a certificate on Apache, you will need:

  • A private key is generated when you create a CSR request (also called a secret key);
  • Access to the Apache server hosting the site;
  • The certificate for the domain itself

The procedure for installing the certificate itself does not depend on what CMS is used (Opencart, WordPress, or any other). The main thing in the settings of CMS would be a permission to use HTTPS.

How to install an SSL certificate on Apache Ubuntu?

The procedure to install SSL for Apache consists of six steps:

  • Purchase SSL. You can find different options in terms of price and features. For example, EssentialSSL is considered one of the most inexpensive certificates, which only provides proof of organization existence. EV SSL already provides maximum credibility to users because it indicates the highest reliability.
  • After issuing a certificate, it is necessary to configure Apache. It is required to save certificate (intermediate and main one) with the received key in a separate folder on a web server.
  • Install the certificate chain. For Apache open all the certificates with a text editor and copy them all into one file starting from the intermediate one (Intermediate 3, Intermediate 2, Intermediate 1) to the root one - Root Certificate. It is important that each certificate is placed on a new line.
  • The resulting file must be moved to the same folder where the key and certificate for the domain are located.
  • Make changes in the configuration file of the web-server. To do this, add several lines in the "Virtual host" block and in the file "httpd.conf": SSLEngine on (to allow SSL to work), as well as the path to the files of the secret key, certificate for the domain, the certificate chain. Note that file names and path may be different. Be sure to use the ones that are relevant in your case.
  • Save the "httpd.conf" file and restart the web server (apachectl restart).

Installation of SSL certificate on Apache Windows follows the same algorithm, the syntax of commands is similar to that of Linux PC. However, to transfer files from your local computer to the server you need WinSCP program (thanks to it you can connect via SSH and drag and drop certificates to a remote directory).  

Installation Control

If you have followed the instructions, the final result will be a successful installation of the certificate on Apache. To check how well everything went, run the web server in your browser using the HTTPS protocol. If it's installed correctly, you'll notice a padlock icon appear at the top of the window. If you click on this icon, you will see information about the SSL certificate that is installed on the site.

In case you encounter difficulties and can't solve the problematic issue by yourself, contact a professional. Experienced professionals from HostZealot will help to set up SSL on Apache in the shortest possible time.

views 2m, 27s
views 2
Teilen

War dieser Artikel für Sie hilfreich?

VPS beliebte Angebote

Weitere Artikel zu diesem Thema

cookie

Cookies und Datenschutz akzeptieren?

Wir verwenden Cookies, um sicherzustellen, dass wir Ihnen die beste Erfahrung auf unserer Website bieten. Wenn Sie fortfahren, ohne Ihre Einstellungen zu ändern, gehen wir davon aus, dass Sie mit dem Empfang aller Cookies auf der HostZealot-Website einverstanden sind.