FREE OF CHARGE!!! SSL certificates with Let’s Encrypt and Apache

bardimin pic

Written by Bardimin

On January 22, 2021
Home » Blogs » Framework » FREE OF CHARGE!!! SSL certificates with Let’s Encrypt and Apache

(SSL)is a cryptographic designed to provide the of communication over a network. SSL works by creating an encrypted path between the website and the web browser.

The usability of creating SSL for websites not only serves to secure the website from eavesdropping attacks. Encrypted messages will secure the data delivered between the user and the server.

In addition, the existence of SSL in your domain greatly facilitates or gives confidence to visitors to your site or website. URLs that use HTTPS will have a padlock icon on the web browser.

In this article, we will help you to configure Let's Encrypt in Windows and how you can enable and configure SSL certificates on your Apache webserver.

Prerequisites of need:

1. Download win-acme Let's Encrypt

We will use ACMEv2 to get a free SSL certificate. Download win-acme and extract the download zip file at C:\win-acme.

2. Run win-acme Let's Encrypt

Run win-acme in C:\win-acme\wacs.exe as .

win acme01

3. Create an SSL certificate

Select M to create a certificate

win acme02
win acme03

Then select option 2: Manual input

win acme05

Next fill in the domain name, for example, “bardimin.com”, press enter to continue.

win acme06

Then select the option “1: [http-01] Serve verification files on (network) path

win acme07

After that fill in the directory location of the root domain, “C:\xampp\htdocs”

win acme08

If the question “copy default web.config” appears, answer“no”

For private key select option“2: RSA key”

win acme10

Since we are using apache, for certificate storage select option 2: PEM Encoded files (Apache, Nginx, etc.)

win acme11

Then specify the location of the storage directory, C:\xampp\apache\conf

win acme12

After that choose option 5: No (additional) store steps because we do not need to store it elsewhere.

Then for the next step select option 5: No (additional) installation steps because we will restart apache from the XAMPP .

win acme14

Next, we will be asked for the approval of the terms and conditions. For options questions, open pdf the terms and conditions file can choose “yes” or “no”. As for the approval of the terms and conditions must select “yes” and the notification email can directly press enter.

win acme15

Then the domain checking verification process will take place. Once the process is complete and successful the certificate file will be stored in C:\xampp\apache\conf with the file name bardimin.com-chain.pem and bardimin.com-key.pem.

win acme16

4. Use certificates on a virtual host

Once the creation of the certificate is complete, the host's virtual set update uses the certificate.

<virtualhost *:443="">ServerName bardimin.com
    DocumentRoot "C:XAMPPhtdocsbardimin.com"
    SSLEngine on
    SSLCertificateFile "conf/bardimin.com-chain.pem"
    SSLCertificateKeyFile "conf/bardimin.com-key.pem"
   <directory "c:xampphtdocsbardimin.com"="">
        Options Indexes FollowSymLinks Includes ExecCGI
        Order allow,deny
        Allow from all
  </directory>
</virtualhost>

Then restart the apache.

5. Verify if the certificate is working

Open the website from the browser: https://bardimin.com/

If the certificate works, a padlock icon appears in the browser.

ssl icon

Good luck…

Latest Articles

How to Manage Notification Widgets in Windows 11

How to Manage Notification Widgets in Windows 11

Notifications are one of the important features in Windows 11 that allow users to stay up-to-date with important information from apps and systems. However, notifications can also become a nuisance if they are too many or irrelevant. Widgets are small cards that...

How to Solve Remote Desktop Issues on Windows 11

How to Solve Remote Desktop Issues on Windows 11

Remote Desktop is a feature that allows you to access and control other computers remotely through the internet network. This feature is very useful for various purposes, such as working from home, providing technical assistance, or managing servers. However, some...

How to Solve Double Letter Typing Keyboard in Windows 11

How to Solve Double Letter Typing Keyboard in Windows 11

Have you ever run into that annoying keyboard problem, where every time you type, double letters appear on the screen? This problem can be very annoying and interfere with your productivity. Double-letter typing keyboard is a problem often experienced by Windows 11...

How to Change Desktop Wallpaper for All Windows 11 Users

How to Change Desktop Wallpaper for All Windows 11 Users

If you share your computer with other people, you may want to set the same desktop wallpaper for all users to make it look neater and more consistent. Desktop wallpapers are one way to express yourself and customize the look of your computer according to your taste....

x