Now, let us view the packages that are needed for implementing the https and for creating the private
key, so the first package that is required is your openssl, we will verify with rpm command whether
that package is there or not.
So we will find out that the package is there.
Then we will require another package, mod_ssl.
If in your case these packages are not available, then please install it by using the yum install open
ssl and then space mod_ssl.
In our case during lab setup, we install these packages.
Now we are going to create the private key for that command is openssl genrsa.
That mean RSA type of key will be generated.
Then we are going to specify -out name of our key.
We are specifying the name as our master.key and how much bit the length of the key should be.
We are specifying it 1024.
So then when we are going to run this command ls what will happen?
It will show us that your master.key file is available and we can verify with ls -a.
And what are the permission of that file and what is the size of that file.
It is 891.
So then we can view that file also, although not need and please, you have to keep this file secret.
You are not going to show that, but just for understanding purposes, how this keys look like.
So we are showing you that private key, also how it looks.
So it is a big one.
string is there.
So let us now.
verify the package and create the your private key