How to use https on localhost

preview_player
Показать описание
► Skype: cuongnq87

Hello, My name is Cuong, I'm a Magento Developer. #UbuntuTutorial #SSLCertificate #UseHttpsOnLocalhost

Today, I am going to show everybody the best practice on Ubuntu, How to Install the SSL Certificate on Your Ubuntu Server with Apache2.

You are a web developer, you need to test the website of a client on your localhost before pushing it on the production server, that website requires to use the https, also, https is not working on your localhost, then you are searching for a solution for resolving this issue. Today, I show you the steps to install the SSL Certificate and use https on your localhost.

Let's use https on your localhost with Apache2 Ubuntu server, you need to complete steps by step:

Step 1: Creating your certificate signing request (CSR) with OpenSSL
- cat /etc/*release, I have Ubuntu 16.04 on my localhost.
- apache2 -v, I installed apache 2.4.18 on my localhost

- Run the following command lines:
1. Enable the ssl module on Apache2: a2enmod ssl
2. Restart the Apache2: service apache2 restart
3. Create the folder named ssl for saving the pravite key file and certificate signing request file: mkdir /etc/apache2/ssl

Enter the following information:
Country Name (2 letter code) [AU]: US
State or Province Name (full name) [Some-State]: New York
Locality Name (eg, city) []: New York City
Organization Name (eg, company) [Internet Widgits Pty Ltd]: Your Company
Organizational Unit Name (eg, section) []: Department of Kittens
Common Name (e.g. server FQDN or YOUR name) []: localhost

Step 2: Configuring Your SSL Certificate
- Test your Apache2 configuration file before restarting: apachectl configtest
- Restart apache2: service apache2 restart

Step 3: Configuring the SSL Certificate for your website.
- Test your Apache2 configuration file before restarting: apachectl configtest
- Restart apache2: service apache2 restart

Test and see the results.
Yeah! it works perfectly.

Thanks for watching guide. If you have any questions about this practice, please feel free to leave a comment below.

Don't forget to like, comment, share my videos and subscribe to my channel for getting the latest lessons.

Please do not hesitate to contact me, if you need me to join your Magento project. My rate is $25/hour in Magento 1 and $30/hour in Magento 2.
Рекомендации по теме
Комментарии
Автор

Why is it still shown 'Not Secure' even though its https?

ColdFuzionz
Автор

Please help me to reach 10.000 subscribers by subscribing to my channel and sharing my videos.

MagentoTutorial