Secure Sockets Layer (SSL)is a cryptographic protocol designed to provide the security of communication over a computer 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.
Prerequisites of need:
- Computer with windows/windows server.
- Apache 2.4/XAMPP is installed on C:xamppapache.
- Already have a domain connected to your webserver.
1. Download win-acme Let’s Encrypt
2. Run win-acme Let’s Encrypt
Run win-acme in C:win-acmewacs.exe as administrator.
3. Create an SSL certificate
Select M to create a certificate
Then select option 2: Manual input
Next fill in the domain name, for example, “bardimin.com”, press enter to continue.
Then select the option “1: [http-01] Serve verification files on (network) path“
After that fill in the directory location of the root domain, “C:xampphtdocs”
If the question “copy default web.config” appears, answer“no”
For private key select option“2: RSA key”
Since we are using apache, for certificate storage select option 2: PEM Encoded files (Apache, Nginx, etc.)
Then specify the location of the storage directory, C:xamppapacheconf
After that choose option 5: No (additional) store steps because we do not need to store it elsewhere.
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.
Then the domain checking verification process will take place. Once the process is complete and successful the certificate file will be stored in C:xamppapacheconf with the file name bardimin.com-chain.pem and bardimin.com-key.pem.
4. Use certificates on a virtual host
Once the creation of the certificate is complete, the host’s virtual set update uses the certificate.
ServerName bardimin.com DocumentRoot "C:XAMPPhtdocsbardimin.com" SSLEngine on SSLCertificateFile "conf/bardimin.com-chain.pem" SSLCertificateKeyFile "conf/bardimin.com-key.pem" Options Indexes FollowSymLinks Includes ExecCGI Order allow,deny Allow from all
Then restart the apache.
5. Verify if the certificate is working
If the certificate works, a padlock icon appears in the browser.