NEED SOME HELP
CLICK HERE OR CALL US ON

Go4hosting +91-120-6025102

Go4hosting 1-888-288-3570

Delivering Excellence in Data center Hosting Solutions since 2000
Submit

Have questions? Let us answer them all!

Lnu7p
How To

How to create a SSL certificate on apache for ubuntu 12.04

Follow the simple steps to create a SSL certificate:

Set up:

It is advisable to have apache already installed on your virtual server. However , if not then it can be downloaded with the help of the following command:

sudo apt-get install apache2

Activation of SSL module:

One needs to perform the following steps:

Enable SSL on the droplet. The command is:

sudo a2enmod ssl

Restart the apache. The command is: 

sudo service apache2 restart

Creation of a new directory:

A new directory needs to be created to store server key and certificate. The command is : sudo mkdir /etc/apache2/ssl

Creation of self-signed SSL certificate:

A self-signed certificate can be created by defining the period of the SSL certificate after which it will expire. The SSL certificates have a maximum validity of a year. The command is :

sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout    etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt.

With the help of the above mentioned command, the newly created SSL certificate and server key will be placed within a new directory.

Installation of the certificate:

The next step after the creation of the SSL certificate is to install the virtual hosts to display the certificate. To open the SSL file, following command is used:

nano /etc/apache2/sites-available/default-ssl


Add a line about your server name underneath the server admin email:

ServerName example.com:443

Now , the next step is to interchange example.com with your DNS approved domain name or server IP address :

SSLEngine on SSLCertificateFile /etc/apache2/ssl/apache.crt SSLCertificateKeyFile /etc/apache2/ssl/apache.key


Save and exit the file

Activation of the new virtual host:

Before the website gets activated on the 443 port , enable the virtual host: sudo a2ensite default-ssl

Now restart your apache server to upload all the changes. In the browser type your address and you will find the updated SSL certificate.

Blogs

Threat Detection in Dedicated Servers

Threat detection is the top element on the priority list for cybersecurity cell. Detection is essential because to eliminate threats, you need to see it first. But with so many adversaries that your d....

Read more>>

Cloud computing in Research & Development (R&D)

Cloud computing is, by and large, the most revolutionizing technology in the IT industry. Before cloud technology and virtualization existed, people relied, on what they call physical servers. Physica....

Read more>>

Submit Query

Please fill in the form below and we will contact you within 24 hours.

  • Go4hosting
  • Go4hosting
  • Go4hosting
  • Go4hosting
  • Go4hosting
  • Go4hosting
  • Go4hosting
  • Go4hosting
Hosting Support
+91-120-6025102
Live-chat-icon
Live Chat
Go4hosting Footer
Click here for download from Google Playstore |

AWS Standard Consulting Partner

  • Go4hosting
  • Go4hosting

Alibaba Cloud

Go4hosting

Drupal Reseller Hosting Partner

USA Address:

Go4hosting
10685-B Hazelhurst Dr. # 15644
Houston, TX 77043
USA
Phone: 1-888-288-3570
Email: [email protected]

Go4hosting