We present the configuration of HTTPS in APACHE2. We will show you how to install and configure an APACHE Server using https. (Self signed certificate)
english
https://simplificandoredes.com/en/apa...
Portuguese
https://simplificandoredes.com/apache...
Professor Dalbert
==================================
See too:
HTTPS + APACHE: Troubleshooting and HTTPS Redirection
• HTTPS + APACHE: Troubleshooting e Redirec...
Apache2 WEB Server Installation & Initial Checks
• Instalação do Servidor WEB Apache2 & Verif...
==================================
#apache2 #https #SSL
For those who don't know and for those who are new, https will provide greater security. It is not the intention here of the video to be discussing about encryption key or which encryption would be better than another. So that's not the intention. In that way, our intention is to seed a basic configuration of a server with HTTPS.
Okay so here we go to practice. So, I prepared some information with a little of what we are going to see here. So, the first step we are going to create a certificate and we are going to talk about what each point of the certificate means.
So let's use this command on the machine. However, first of all, the first thing we have to do is install apache2. So, assuming this machine here doesn't have apache2 installed.
Creating HTTPS Server Certificate
So let's go to part of the Apache HTTPS Server configuration. So let's create the keys. with the command described above. Let's use the :
sudo openssl req -x509 -nodes -days 300 -newkey rsa:2048 -keyout /etc/ssl/private/apache_ssl.key -out /etc/ssl/certs/apache_ssl.crt
The openssl command autocompletes when we type TAB. We could put the certificate in other places as well. This is just a suggestion. So that's done, let's give an Enter and it'll start asking some questions.
When you're doing this for a company and for a domain you're going to answer it right and answer the questions. However, here we are doing a tutorial and we are not going to answer the first nor the second, nor the fourth, nor the fifth. Here it is important to answer. Here it is important to put the domain or IP in case we are working here with the machine without using domains, so let's put the IP then “192.168.56.103” . Then I won't put in an email address.
Setting the default-ssl
Okay, let's go to the next step. Now let's go into:
Let's enter the ServerName with the IP of the machine. Now let's see what we're going to edit in the file. Here at the beginning we will put: ServerName 192.168.56.103
Enabling SSL Modules
To activate the SSL modules, let's use these commands here and then we'll restart APACHE2 So let's activate the modules.
Note that after executing this command, the default-ssl module will be activated. This way, this command will activate the module and it will also appear in the sites-enable directory.
Checking Apache HTTPS Server Errors
Now we will do this command: “sudo apache2ctl configtest” to check if we made a mistake in the configuration. It's good to check before moving on.
Testing the HTTPS Apache Server
Let's test it with the browser. So let's open the browser here I will create a private tab. OK, “https://192.168.56.103”. This way, we are not using certification unit so the browser will ask and we will confirm.
Okay, it's working with https. In this case the server is running both https and also runs via http on port 80.
We can verify this by running http only. "http://192.168.56.103". OK so you're listening on both ports.
00:00 start
00:20 Card about APACHE2 installation video
00:35 Motivation to use HTTPS
01:13 Creating the SSL certificate
03:11 Installing APACHE2
06:38 Setting up SSL in APACHE
09:03 Enabling SSL modules
12:53 Checking if APACHE is listening on the correct ports
13:41 Testing https in browser
15:00 Checking the https request in Wireshark
15:51 Encrypted traffic proof
16:27 Comparing with unencrypted traffic
Related Topics:
WEB server with encryption
APACHE 2
https://httpd.apache.org/docs/2.4/en/...
https://httpd.apache.org/docs/2.4/en/...
https://httpd.apache.org/docs/2.4/en/...
https://www.linode.com/docs/guides/ss...
https://linuxize.com/post/redirect-ht...
https://www.digitalocean.com/communit...
Sur cette page du site, vous pouvez voir la vidéo en ligne HTTPS APACHE: Configuration | How to configure HTTPS on the WEB server durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Simplificando Redes 29 mars 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 17,763 fois et il a aimé 463 téléspectateurs. Bon visionnage!