How to manually install an SSL certificate on my Apache Server Ubuntu ?

Article by: Manish Methani

Last Updated: October 1, 2021 at 8:04am IST
1 min 27 sec

After your certificate request is approved, you can download your certificate from the SSL manager of your hosting provider.  Finally install it on your Apache server.

We usually recommend the Bigrock hosting service. It is one of the leading Domain Registration and Server Hosting Provider. Get a Flat 10% Off on SSL Certificate today.

To install it, you have to follow the following steps:


1) Upload the intermediate certificate (gd_bundle.crt or similar) and primary certificate(.crt file with randomized name) into your server folder. 

2) Find your Apache configuration file.
     On default configurations, you can find a file named 000-default.conf in /etc/apache2/sites-enabled folder.

3) Open this file with your favorite text editor.

       sudo nano 000-default.conf 

4) Inside your 000-default.conf file, find the block.

5) To make your connection secure to HTTPS, add this below the existing block

    DocumentRoot /var/www/coolexample
        ServerName coolexample.com www.coolexample.com
        SSLEngine on
        SSLCertificateFile /path/to/coolexample.crt
        SSLCertificateKeyFile /path/to/privatekey.key
        SSLCertificateChainFile /path/to/intermediate.crt
 
6) Make sure port 443 is there at the end of your server IP.

The remaining /path/to/.... file locations can be replaced with your certificates folder and file names.

7) Now, run the following command to check your Apache configuration file for error:

     apache2ctl configtest

8) If it returns a Syntax Ok response, run the following command to restart Apache server:

sudo service apache2 restart

Simplified Coding for Beginners.








Download the Codzify
Mobile App


Mobile App Development, Web App Development, Programming Languages, Latest Tech News & lot more.

Codzify Mobile App

A self-paced learning Courses Created by an Engineer
For Engineers.

Premium

The Complete Angular Course

Instructor: Manish Methani

Explore Curriculum
Free

C Programming for Absolute Beginners

Instructor: Manish Methani

Start Watching
Premium

Flutter Mobile App Development Course

Instructor: Manish Methani

Explore Curriculum
Free

Learn HTML, CSS & Bootstrap

Instructor: Manish Methani

Start Watching

Test your skills with these expert-led curated
Mock Tests.

C Programming Test

Test your C Programming skills with this comprehensive mock test on C Programming.

Take Test

Flutter Test

Solve most asked Interview Questions on Flutter and Test your foundational skills in flutter.

Take Test

GATE(CSE) Operating Systems

Solve most asked GATE Questions in Operating Systems and test your Gate Score.

Take Test

HTML,CSS Test

This is a mock test designed to help you assess your knowledge and skills in HTML and CSS.

Take Test

(GATE CSE) Data Structures & Algorithms Test

Solve most asked GATE Questions in Data Structures and Algorithms and test your Gate Score.

Take Test
include_once 'codzify-footer.php'; ?>