Transport Layer Security (TLS) and its predecessor, Secure Sockets Layer (SSL) , both of which are frequently referred to as “SSL”, are cryptographic protocols that provide communications security over a computer network. Several versions of the protocols are in widespread use in applications such as web browsing, email, Internet faxing, instant messaging, and voice-over-IP (VoIP). Major web sites use TLS to secure all communications between their servers and web browsers.
The primary goal of the Transport Layer Security protocol is to provide privacy and data integrity between two communicating computer applications. When secured by TLS, connections between a client (e.g., a web browser) and a server (e.g., wikipedia.org) have one or more of the following properties:
* The connection is private because symmetric cryptography is used to encrypt the data transmitted.
* The identity of the communicating parties can be authenticated using public-key cryptography.
* The connection is reliable because each message transmitted includes a message integrity check using a message authentication code to prevent undetected loss or alteration of the data during transmission. –
HTTPS (also called HTTP over TLS, HTTP over SSL, and HTTP Secure) is a protocol for secure communication over a computer network which is widely used on the Internet. HTTPS consists of communication over Hypertext Transfer Protocol (HTTP) within a connection encrypted by Transport Layer Security or its predecessor, Secure Sockets Layer. The main motivation for HTTPS is authentication of the visited website and protection of the privacy and integrity of the exchanged data. – wikipedia
Open a terminal
Remove Apache default web page
sudo rm -f /var/www/html/index.html && sudo touch /var/www/html/index.php
sudo a2enmod ssl
sudo a2ensite default-ssl
sudo service apache2 restart