The growing demand of the secure online communications has made the SSL a necessity for online buyers and sellers. There are many SSL vendors like GeoTrust, VeriSign, Thawte, BBB and Instant SSL that provides you various ranges of SSL certificates. Almost all the enterprises, hosting companies, e-commerce websites, online merchants and financial institute websites require SSL to be installed on the web servers.
How SSL Works?
SSL works on the PKI (Public Key Interface) in which the data is encrypted and decrypted by using the public and private keys.
- Web browser checks the certificates and ensures that the website you are visiting is a real website.
- Browser determines the encryption types that both the web browser and web server can understand and communicate with each other.
- Browse and the web server send each other the unique codes that will be used to encrypt the information that will be transmitted.
- Finally, the web browser and the server start communicating securely. Web browser shows the lock sign (encryption icon). It shows the information is being processed securely.
How to Install SSL
The following section tells that how to install the SSL on the Apache Web Server.
- Copy the certificate in your web server directory where you want to install SSL. By default it is installed here /usr/local/apache/conf/ssl.crt/ or /etc/httpd/conf/ssl.crt/. Copy the entire contents of the certificates beginning from. The -----BEGIN CERTIFICATE----- to-----END CERTIFICATE----- lines.
- Open the httpd.conf file in your text editor.
- Locate these virtual hosts.
SSLCertificateFile /usr/local/apache/conf/ssl.crt/domainname.crt
SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/domainname.key (or server.key). You need to add them if these are not present.
- Close the file and restart your apache web server by using the following commands.
/usr/local/apache/bin/apachectl startssl
or
/usr/local/apache/bin/apachectl restart
After installing SSL, you need to test your certificate by connecting your browser to your web server. Use the https directives like https://your server/
The above steps shows that how to setup SSL on your Apache web server to start the secure communication.
|