For https implementation, we need to view the file ssl.config file, which is very important
file now where is this file /etc/httpd/conf.d directory.
So we will go there and we will check with ls commands which files are available, and we
will see that ssl.conf file is available and with a ls -l we can see the detail of this
file to which user and what is the size of this file.
This file is very large.
Here we are just interested in one settings about the SSL certificate.
So what we will do, we will say "cat ssl.conf and then with grep command.
We are going to search this parameter SSLcertificate here.
It is going to show you to files SSLcertificate file and then it is going to show you one SSL certificateKey,
file, in key file.
Your once already created private keys store, the name of that key is localhost.key that is private key
and one already certificate has been created.
The name of that certificate is localhost.
That is localhost.crt.
So these are the setting.
Later on, we are going to create our own private key and our own certificate self-signed certificate,
and then we are going to change these values.
So let us go into this your ssl directory and then find out what are the default settings.
So I will go into the master system.
So we will go into.
cd /etc/httpd then the directory conf.d is there
So we will go there with the ls command.
You can view that ssl.conf file is there.
With ls -l, you can view the detail and with the vi ssl.conf now you can open.
Now this is very large file.
so sometimes the parameter you want to find, they are difficult to locate.
So this is the two things that we wanted to locate SSL certificate key file.
This is your private key.
And here you have got one certificate file by default that is the certificate file.
But sometimes viewing the file in this way is not recommended.
So what we can do, we can send that output to our grep command and then grep command what we can say.
Gruplease search for the string SSLCertificate
So so it is going to show us the two important parameters SSLCertificate file and SSLCertificateKey
keyfile.
So the condensed output is there.
So sometimes instead of being all the file, you can use the grep command to search for the relevant
strings.
So that is the critical file and these are the settings we find out that mean one localhost certificate.
is there one localhost key is there.