OpenSSL Server
SSL is a protocol used for transmitting sensitive information over the Internet. This could include information such as account passwords, credit card details, and so on. SSL is most popularly used in conjunction with web browsing over the HTTP protocol.
OpenSSL
library provides an implementation of Secure Sockets Layer (SSL) and TLS Transport Layer Security (TLS) protocols.
Getting Ready
To demonstrate the use of OpenSSL
, we need two systems. One will be used as a server on which we will install the OpenSSL
package and also Apache. The second system will be used as the client.
How to do it...
We will now see how to create a self-signed certificate using OpenSSL
, for Apache. This will help encrypt traffic to the server:
We start by installing
OpenSSL
package on the first system using the following command:Next, we will install Apache on the same system, as shown in the following:
Once Apache is installed, we need to enable SSL support, which comes as standard in the Apache package...