1
00:00:00,240 --> 00:00:07,740
For https implementation, we need to view the file ssl.config file, which is very important

2
00:00:07,740 --> 00:00:13,170
file now where is this file /etc/httpd/conf.d directory.

3
00:00:13,500 --> 00:00:20,220
So we will go there and we will check with ls commands which files are available, and we

4
00:00:20,220 --> 00:00:28,140
will see that ssl.conf file is available and with a ls -l we can see the detail of this

5
00:00:28,140 --> 00:00:31,770
file to which user and what is the size of this file.

6
00:00:31,780 --> 00:00:34,110
This file is very large.

7
00:00:34,500 --> 00:00:40,020
Here we are just interested in one settings about the SSL certificate.

8
00:00:40,030 --> 00:00:45,900
So what we will do, we will say "cat ssl.conf and then with grep command.

9
00:00:46,470 --> 00:00:50,730
We are going to search this parameter SSLcertificate here.

10
00:00:50,730 --> 00:00:59,190
It is going to show you to files SSLcertificate file and then it is going to show you one SSL certificateKey,

11
00:00:59,190 --> 00:01:00,870
file, in key file.

12
00:01:00,990 --> 00:01:09,060
Your once already created private keys store, the name of that key is localhost.key that is private key

13
00:01:09,360 --> 00:01:12,810
and one already certificate has been created.

14
00:01:12,810 --> 00:01:15,030
The name of that certificate is localhost.

15
00:01:15,030 --> 00:01:17,730
That is localhost.crt.

16
00:01:18,180 --> 00:01:19,320
So these are the setting.

17
00:01:19,350 --> 00:01:26,580
Later on, we are going to create our own private key and our own certificate self-signed certificate,

18
00:01:26,790 --> 00:01:29,520
and then we are going to change these values.

19
00:01:29,820 --> 00:01:40,980
So let us go into this your ssl directory and then find out what are the default settings.

20
00:01:41,310 --> 00:01:43,530
So I will go into the master system.

21
00:01:44,730 --> 00:01:48,650
So we will go into.

22
00:01:49,350 --> 00:01:57,990
cd /etc/httpd then the directory conf.d is there 

23
00:01:58,320 --> 00:02:00,720
So we will go there with the ls command.

24
00:02:00,720 --> 00:02:04,110
You can view that ssl.conf file is there.

25
00:02:04,770 --> 00:02:12,990
With ls -l, you can view the detail and with the vi ssl.conf now you can open.

26
00:02:13,560 --> 00:02:15,300
Now this is very large file.

27
00:02:16,320 --> 00:02:21,970
so sometimes the parameter you want to find, they are difficult to locate.

28
00:02:22,410 --> 00:02:27,420
So this is the two things that we wanted to locate SSL certificate key file.

29
00:02:27,960 --> 00:02:29,210
This is your private key.

30
00:02:29,760 --> 00:02:35,900
And here you have got one certificate file by default that is the certificate file.

31
00:02:36,570 --> 00:02:40,830
But sometimes viewing the file in this way is not recommended.

32
00:02:40,860 --> 00:02:49,710
So what we can do, we can send that output to our grep command and then grep command what we can say.

33
00:02:50,440 --> 00:03:01,640
Gruplease search for the string SSLCertificate

34
00:03:03,090 --> 00:03:12,090
So so it is going to show us the two important parameters SSLCertificate file and SSLCertificateKey

35
00:03:12,090 --> 00:03:12,630
keyfile.

36
00:03:13,020 --> 00:03:14,910
So the condensed output is there.

37
00:03:14,940 --> 00:03:21,750
So sometimes instead of being all the file, you can use the grep command to search for the relevant

38
00:03:21,990 --> 00:03:22,770
strings.

39
00:03:23,250 --> 00:03:30,720
So that is the critical file and these are the settings we find out that mean one localhost certificate.

40
00:03:30,730 --> 00:03:32,880
is there one localhost key is there.
