Now, let us view the package and create the private key, so we will go into our master system and
we are in this /etc/httpd/conf.d directory.
So we are going to run this command rpm -q openssl whether that package is there.
Yes, that package is there because we installed it during the lab setup.
So mod_ssl.
So that package is also available.
Now what we are going to do, openssl is the command that is going to use for creating the key.
So we are specifying that genrsa key then we are going to say that name of our key is going to
be master key.
And then we are going to specify the length of the key, 1024, so it has created the key with the
ls command we can view that this key has been created, master.key then we can in this way.
Also, we can look at the details, then we can view the key, although this is not recommended practice
because this should be kept secret, it should not be displayed.
But here, this is the key beginning RSA key so that that mean we are able to successfully create
the key and we were able to view the key also.