{"id":12550,"date":"2023-01-04T09:13:38","date_gmt":"2023-01-04T09:13:38","guid":{"rendered":"https:\/\/cloudkul.com\/blog\/?p=12550"},"modified":"2024-12-23T11:06:25","modified_gmt":"2024-12-23T11:06:25","slug":"how-to-get-free-https-on-your-website-using-lets-encrypt-ssl","status":"publish","type":"post","link":"https:\/\/cloudkul.com\/blog\/how-to-get-free-https-on-your-website-using-lets-encrypt-ssl\/","title":{"rendered":"Learn how to get free HTTPS(SSL) on your website"},"content":{"rendered":"\n<p>In this article, we will learn how to get a free<a href=\"https:\/\/cloudkul.com\/blog\/need-of-ssl-in-e-commerce-store\/\"> SSL certificate<\/a> for your website.<\/p>\n\n\n\n<p>Let\u2019s Encrypt is an SSL certificate authority managed by the Internet Security Research Group (ISRG).<\/p>\n\n\n\n<p id=\"02eb\">It utilizes the Automated Certificate Management Environment (ACME) to automatically deploy free SSL certificates. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"c\">What is SSL?<\/h2>\n\n\n\n<p><a href=\"https:\/\/cloudkul.com\/features\/ssl-integration\/\">SSL stands for Secure Socket Layer.<\/a> It creates an encrypted layer of data transmission between the two systems.<\/p>\n\n\n\n<p>Whether it is server-to-server communication or server-to-browser communication. SSL allows <a href=\"https:\/\/cloudkul.com\/blog\/data-encryption-at-rest-and-in-transit-protect-your-data\/\">encrypted data<\/a> transmission and prevents its access to an outsider.<\/p>\n\n\n\n<p>For creating an SSL connection, a server needs an SSL certificate.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/12\/2022-12-28_12-43.png\"><img loading=\"lazy\" decoding=\"async\" width=\"452\" height=\"48\" data-id=\"12600\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/12\/2022-12-28_12-43.png\" alt=\"ssl\" class=\"wp-image-12600\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">How does SSL make your website secure?<\/h2>\n\n\n\n<p>The <a href=\"https:\/\/cloudkul.com\/blog\/data-encryption-at-rest-and-in-transit-protect-your-data\/\">encryption of the transmitted data <\/a>makes sure that all information remains private. <\/p>\n\n\n\n<p>If the data is transmitted without encryption, hackers can steal personal information such as Login ID, Credit card numbers,&nbsp;Email Addresses, Mailing Addresses, Passwords, etc.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SSL Encryptions: How do they work?<\/h2>\n\n\n\n<ul>\n<li>A browser tries to make a secure connection with an SSL-secured website after obtaining its IP Address from a DNS server. The web address of an SSL secure site begins with \u2018HTTPS\u2019 instead of \u2018HTTP.\u2019<\/li>\n\n\n\n<li>The browser initiates a request for the SSL certificate copy of the server.<\/li>\n\n\n\n<li>After receiving the copy of the certificate, it ensures that the certificate is not expired, matches the domain name, and confirms security standards, such as key length, etc.<\/li>\n\n\n\n<li>Once the certificate seems trustable, the browser creates a symmetric session key.<\/li>\n\n\n\n<li>In addition, the server acknowledges the encryption.<\/li>\n\n\n\n<li>All communication between the web server and the concerned browser is now encrypted.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Case 1 &#8211; <strong>Configure SSL in case of a single domain<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1 &#8211; Installing Certbot<\/strong><\/h3>\n\n\n\n<p>It is a free open-source software tool for automatically using&nbsp;Let\u2019s Encrypt&nbsp;certificates on <\/p>\n\n\n\n<p>manually-administrated websites to enable HTTPS.<\/p>\n\n\n\n<p>Run the following command<\/p>\n\n\n\n<p> <strong>apt-get install certbot<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-04_11-29.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"234\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-04_11-29-1024x234.png\" alt=\"ssl\" class=\"wp-image-12885\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2<\/strong>: <strong>Check your domain name <\/strong><\/h3>\n\n\n\n<p> cat \/etc\/apache2\/sites-available\/000-default.conf<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-04_11-54.png\"><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"409\" data-id=\"12887\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-04_11-54.png\" alt=\"ssl\" class=\"wp-image-12887\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Generate an SSL certificate for your domain <\/strong><\/h3>\n\n\n\n<p><strong>Run the below command and Replace mohit.tk with your domain name.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">certbot --server https:\/\/acme-v02.api.letsencrypt.org\/directory -d mohit.tk  --manual --preferred-challenges dns-01 certonly<\/pre>\n\n\n\n<p>Going into the command&nbsp;<\/p>\n\n\n\n<ul>\n<li><strong>certbot:&nbsp;<\/strong>the certbot program<\/li>\n\n\n\n<li><strong>certonly:<\/strong>&nbsp;run the certbot once, certbot-auto runs certbot automatically<\/li>\n\n\n\n<li><strong>manual:&nbsp;<\/strong>run certbot in manual mode<\/li>\n\n\n\n<li><strong>d:<\/strong>&nbsp;domains to be included in the certificate, use your domain <\/li>\n\n\n\n<li><strong>preferred-challenges:<\/strong>&nbsp;The way used to verify domain ownership, We used the DNS challenge<\/li>\n\n\n\n<li><strong>server:<\/strong>&nbsp;The letsencrypt ACME server<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-04_12-50.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"317\" data-id=\"12925\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-04_12-50-1024x317.png\" alt=\"ssl\" class=\"wp-image-12925\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>Once you run the above command, you will get the following output.<\/p>\n\n\n\n<p>You need to press <strong>Enter<\/strong><\/p>\n\n\n\n<p>In this step, you need to create a <strong>DNS TXT record <\/strong>under the name _acme-challenge. It needs to be configured inside your DNS panel like Cloudflare, GoDaddy, etc.<\/p>\n\n\n\n<p>Here are my Cloudflare Entry details<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-04_12-17.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"226\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-04_12-17-1024x226.png\" alt=\"ssl\" class=\"wp-image-12897\"\/><\/a><\/figure>\n\n\n\n<p>Once you&#8217;ve entered the TXT record on your DNS panel (Cloudflare) get back to your console and again press <strong>Enter<\/strong> you will receive the below message<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-04_12-19.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"193\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-04_12-19-1024x193.png\" alt=\"ssl\" class=\"wp-image-12899\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 4<\/strong>: <strong>To configure your Apache configuration<\/strong><\/h3>\n\n\n\n<p>using your favorite editor <\/p>\n\n\n\n<p class=\"has-black-color has-text-color\"><strong>vi default-ssl.conf<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-4 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-04_12-21.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"603\" data-id=\"12902\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-04_12-21-1024x603.png\" alt=\"ssl\" class=\"wp-image-12902\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>You have to define the SSL certificate path, find your certificate path inside <strong>\/etc\/letsencrypt\/live\/ <\/strong>  <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 5: Run the below command to enable the SSL module of Apache<\/strong><\/h3>\n\n\n\n<p><strong>a2enmod ssl<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-5 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-04_12-26.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"171\" data-id=\"12904\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-04_12-26-1024x171.png\" alt=\"ssl\" class=\"wp-image-12904\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>And then restart the Apache service <\/p>\n\n\n\n<p><strong>service apache2 restart <\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 6: Run the below command to enable the SSL conf file<\/strong><\/h3>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">&#8220;a2ensite is a script that enables the specified site (which contains a block) within the apache2 configuration. It creates symlinks within \/etc\/apache2\/sites-enabled&#8221;.<\/mark><\/p>\n\n\n\n<p> <strong>a2ensite default-ssl.conf<\/strong><\/p>\n\n\n\n<p>And then restart your Apache service.<\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">Now, Go to the browser and enter your domain name<\/mark><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-04_12-28.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"472\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-04_12-28-1024x472.png\" alt=\"ssl\" class=\"wp-image-12906\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Case 2 &#8211; Configure wildcard SSL in case of multiple subdomains<\/h2>\n\n\n\n<p><strong>Note<\/strong>: If you have already installed the certbot don&#8217;t need to install it again<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1 &#8211; Installing Certbot<\/strong><\/h3>\n\n\n\n<p>It is a free open-source software tool for automatically using&nbsp;Let\u2019s Encrypt&nbsp;certificates on <\/p>\n\n\n\n<p>manually-administrated websites to enable HTTPS.<\/p>\n\n\n\n<p>Run the following command<\/p>\n\n\n\n<p><strong>sudo<\/strong> <strong>apt install certbot<\/strong><\/p>\n\n\n\n<p>query<\/p>\n\n\n\n<p>to continue the installation  press&nbsp;&#8220;<code>Y\"<\/code>&nbsp;and then&nbsp;<code>ENTER<\/code>&nbsp;to accept.<\/p>\n\n\n\n<p>Certbot is now installed on your server. Next, you\u2019ll verify Apache\u2019s configuration to make sure your virtual host is set appropriately.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2. Check your Domain name<\/strong><\/h3>\n\n\n\n<p>to check your domain, We need to check the vhost file<\/p>\n\n\n\n<p><strong>vi \/etc\/apache2\/sites-available\/000-default.conf<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-6 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/12\/2022-12-28_12-46.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"582\" data-id=\"12601\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/12\/2022-12-28_12-46-1024x582.png\" alt=\"ssl\" class=\"wp-image-12601\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>You can check your vhost file under <strong>\/etc\/apache2\/sites-available<\/strong>\/<strong> <\/strong><\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\"><strong>A wildcard SSL provides a way to secure an unlimited number of subdomains with a single certificate. <\/strong><\/mark><strong>This<\/strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\"><strong> certificate works with any subdomain of the main domain name. <\/strong><\/mark><\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">For example, if your domain name is \u201cmohit.tk\u201d, your wildcard certificate would also protect \u201ctest.mohit.tk\u201d and \u201cdev.mohit.tk\u201d.<\/mark><\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\"><strong>On wildcard SSL certificates, an asterisk (*) is placed before your domain name as a placeholder.<\/strong><\/mark><\/p>\n\n\n\n<p>We are using mohit.tk domain name and also using wildcard subdomain entry <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3 &#8211; Generate a wildcard certificate<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">certbot --server https:\/\/acme-v02.api.letsencrypt.org\/directory -d mohit.tk -d *.mohit.tk --manual --preferred-challenges dns-01 certonly<\/pre>\n\n\n\n<p>Going into the command&nbsp;<\/p>\n\n\n\n<ul>\n<li><strong>certbot:&nbsp;<\/strong>the certbot program<\/li>\n\n\n\n<li><strong>certonly:<\/strong>&nbsp;run the certbot once, certbot-auto runs certbot automatically<\/li>\n\n\n\n<li><strong>manual:&nbsp;<\/strong>run certbot in manual mode<\/li>\n\n\n\n<li><strong>d:<\/strong>&nbsp;domains to be included in the certificate, use your domain and its wildcard instead of exampledomain.com<\/li>\n\n\n\n<li><strong>preferred-challenges:<\/strong>&nbsp;The way used to verify domain ownership, We used the DNS challenge<\/li>\n\n\n\n<li><strong>server:<\/strong>&nbsp;The letsencrypt ACME server<\/li>\n<\/ul>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">Replace mohit.tk with your domain name.<\/mark><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-from-2022-12-27-17-32-17.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"181\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-from-2022-12-27-17-32-17-1024x181.png\" alt=\"ssl\" class=\"wp-image-12560\"\/><\/a><\/figure>\n\n\n\n<p>Once you run the above command, you will get the following output.<\/p>\n\n\n\n<p>You need to press <strong>Enter<\/strong><\/p>\n\n\n\n<p>In this step, you need to create a <strong>DNS TXT record <\/strong>under the name _acme-challenge. It needs to be configured inside your DNS panel like Cloudflare, GoDaddy, etc.<\/p>\n\n\n\n<p><strong>We are using Cloudflare in our case <\/strong><\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-7 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-from-2022-12-27-17-41-44.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"399\" data-id=\"12561\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-from-2022-12-27-17-41-44-1024x399.png\" alt=\"ssl\" class=\"wp-image-12561\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>You need to press <strong>Enter<\/strong><\/p>\n\n\n\n<p>Once you&#8217;ve entered the TXT record on your DNS panel (Cloudflare) get back to your console and again press<strong> Enter<\/strong>.<\/p>\n\n\n\n<p>You will receive one more TXT record because we are using the wildcard subdomain and you need to enter the TXT record on your DNS panel (Cloudflare)<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-8 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-from-2022-12-27-17-46-33.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"196\" data-id=\"12564\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-from-2022-12-27-17-46-33-1024x196.png\" alt=\"ssl\" class=\"wp-image-12564\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-from-2022-12-27-17-48-09.png\"><img loading=\"lazy\" decoding=\"async\" width=\"955\" height=\"216\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-from-2022-12-27-17-48-09.png\" alt=\"ssl\" class=\"wp-image-12565\"\/><\/a><\/figure>\n\n\n\n<p>press Enter you will receive the below message<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-9 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-from-2022-12-27-17-49-17.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"323\" data-id=\"12566\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-from-2022-12-27-17-49-17-1024x323.png\" alt=\"ssl\" class=\"wp-image-12566\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p id=\"8490\"><strong>Congratulations!! Your wildcard certificate is generated. You can use this wildcard certificate with any sub-domain you create for your domain name.<\/strong><\/p>\n\n\n\n<p id=\"fa90\">After that, you need to manually configure Apache with the correct SSL cert path.<\/p>\n\n\n\n<p>You have to copy this file location and map from your Apache server<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 4 &#8211; Configure your Apache configuration<\/strong><\/h3>\n\n\n\n<p>using your favorite editor <\/p>\n\n\n\n<p><strong>vi default-ssl.conf<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/12\/2022-12-28_13-01.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"651\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/12\/2022-12-28_13-01-1024x651.png\" alt=\"ssl\" class=\"wp-image-12605\"\/><\/a><\/figure>\n\n\n\n<p>You have to define the SSL certificate path, find your certificate path inside <strong>\/etc\/letsencrypt\/live\/ <\/strong>  <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 5: Run the <\/strong>below command to enable the SSL<strong> module of Apache<\/strong><\/h3>\n\n\n\n<p class=\"has-black-color has-text-color\"><strong>a2enmod ssl<\/strong><\/p>\n\n\n\n<p>And then restart the apache service <\/p>\n\n\n\n<p class=\"has-black-color has-text-color\"><strong>service apache2 restart <\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 6<\/strong>: Run the <strong>below command to enable the SSL conf file<\/strong><\/h3>\n\n\n\n<p>&#8220;a2ensite is a script that enables the specified site (which contains a block) within the apache2 configuration. It creates symlinks within \/etc\/apache2\/sites-enabled&#8221;.<\/p>\n\n\n\n<p><strong>a2ensite default-ssl.conf<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-from-2022-12-27-18-53-22.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"53\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-from-2022-12-27-18-53-22-1024x53.png\" alt=\"ssl\" class=\"wp-image-12579\"\/><\/a><\/figure>\n\n\n\n<p><strong>service apache2 restart<\/strong> <\/p>\n\n\n\n<p>As we have used an asterisk (*) subdomain entry It means we can use anything as a subdomain before the main domain(mohit.tk) <\/p>\n\n\n\n<p>Here are my Cloudflare Entry details<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-from-2022-12-27-19-04-24.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"219\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-from-2022-12-27-19-04-24-1024x219.png\" alt=\"ssl\" class=\"wp-image-12581\"\/><\/a><\/figure>\n\n\n\n<p>Now, Go to the browser and enter your domain name with the subdomain as you can see below<\/p>\n\n\n\n<p>query<\/p>\n\n\n\n<p>check another subdomain<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2022-12-27-18-38-15.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"557\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/Screenshot-from-2022-12-27-18-38-15-1024x557.png\" alt=\"ssl\" class=\"wp-image-12856\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Case 3 &#8211; How to auto-renew the SSL certificates<\/h2>\n\n\n\n<p>To learn how to <a href=\"https:\/\/cloudkul.com\/blog\/automcatic-renew-and-generate-ssl-on-your-website-using-lego-client\/\">automatically renew your free SSL certificates<\/a> then please refer to my next blog.<\/p>\n\n\n\n<p><strong>You may also visit our Magento development services and quality&nbsp;<\/strong> <strong><a href=\"https:\/\/store.webkul.com\/Magento-2.html\">Magento 2 Extensions<\/a><\/strong>.<\/p>\n\n\n\n<p><strong>For further help or queries, please&nbsp;<a href=\"https:\/\/cloudkul.com\/contact\/\">contact<\/a>&nbsp;us or raise a&nbsp;<a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\">ticket<\/a>.<\/strong><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will learn how to get a free SSL certificate for your <a class=\"text-primary\" title=\"read more\" href=\"https:\/\/cloudkul.com\/blog\/how-to-get-free-https-on-your-website-using-lets-encrypt-ssl\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":39,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2,87,341,340],"tags":[90,794,267,793,67,795],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Learn how to get free HTTPS(SSL) on your website - Cloudkul<\/title>\n<meta name=\"description\" content=\"SSL stands for Secure Socket Layer. SSL creates an encrypted layer of data transmission between the two systems.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cloudkul.com\/blog\/how-to-get-free-https-on-your-website-using-lets-encrypt-ssl\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Learn how to get free HTTPS(SSL) on your website - Cloudkul\" \/>\n<meta property=\"og:description\" content=\"SSL stands for Secure Socket Layer. SSL creates an encrypted layer of data transmission between the two systems.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudkul.com\/blog\/how-to-get-free-https-on-your-website-using-lets-encrypt-ssl\/\" \/>\n<meta property=\"og:site_name\" content=\"Cloudkul\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-04T09:13:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-23T11:06:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/12\/2022-12-28_12-43.png\" \/>\n<meta name=\"author\" content=\"Mohit Tiwari\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cloudkul.com\/blog\/how-to-get-free-https-on-your-website-using-lets-encrypt-ssl\/\",\"url\":\"https:\/\/cloudkul.com\/blog\/how-to-get-free-https-on-your-website-using-lets-encrypt-ssl\/\",\"name\":\"Learn how to get free HTTPS(SSL) on your website - Cloudkul\",\"isPartOf\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\"},\"datePublished\":\"2023-01-04T09:13:38+00:00\",\"dateModified\":\"2024-12-23T11:06:25+00:00\",\"author\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/d65bf252186a357da67ead26747e47b7\"},\"description\":\"SSL stands for Secure Socket Layer. SSL creates an encrypted layer of data transmission between the two systems.\",\"breadcrumb\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/how-to-get-free-https-on-your-website-using-lets-encrypt-ssl\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cloudkul.com\/blog\/how-to-get-free-https-on-your-website-using-lets-encrypt-ssl\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cloudkul.com\/blog\/how-to-get-free-https-on-your-website-using-lets-encrypt-ssl\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cloudkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Learn how to get free HTTPS(SSL) on your website\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\",\"url\":\"https:\/\/cloudkul.com\/blog\/\",\"name\":\"Cloudkul\",\"description\":\"Host your eCommerce Store on AWS with Optimized Performance\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cloudkul.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/d65bf252186a357da67ead26747e47b7\",\"name\":\"Mohit Tiwari\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d958ee0f8ad4fe891d737cc821536709?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d958ee0f8ad4fe891d737cc821536709?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"caption\":\"Mohit Tiwari\"},\"url\":\"https:\/\/cloudkul.com\/blog\/author\/mohitkrtiwari-cloud767\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Learn how to get free HTTPS(SSL) on your website - Cloudkul","description":"SSL stands for Secure Socket Layer. SSL creates an encrypted layer of data transmission between the two systems.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cloudkul.com\/blog\/how-to-get-free-https-on-your-website-using-lets-encrypt-ssl\/","og_locale":"en_US","og_type":"article","og_title":"Learn how to get free HTTPS(SSL) on your website - Cloudkul","og_description":"SSL stands for Secure Socket Layer. SSL creates an encrypted layer of data transmission between the two systems.","og_url":"https:\/\/cloudkul.com\/blog\/how-to-get-free-https-on-your-website-using-lets-encrypt-ssl\/","og_site_name":"Cloudkul","article_published_time":"2023-01-04T09:13:38+00:00","article_modified_time":"2024-12-23T11:06:25+00:00","og_image":[{"url":"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/12\/2022-12-28_12-43.png"}],"author":"Mohit Tiwari","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/cloudkul.com\/blog\/how-to-get-free-https-on-your-website-using-lets-encrypt-ssl\/","url":"https:\/\/cloudkul.com\/blog\/how-to-get-free-https-on-your-website-using-lets-encrypt-ssl\/","name":"Learn how to get free HTTPS(SSL) on your website - Cloudkul","isPartOf":{"@id":"https:\/\/cloudkul.com\/blog\/#website"},"datePublished":"2023-01-04T09:13:38+00:00","dateModified":"2024-12-23T11:06:25+00:00","author":{"@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/d65bf252186a357da67ead26747e47b7"},"description":"SSL stands for Secure Socket Layer. SSL creates an encrypted layer of data transmission between the two systems.","breadcrumb":{"@id":"https:\/\/cloudkul.com\/blog\/how-to-get-free-https-on-your-website-using-lets-encrypt-ssl\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudkul.com\/blog\/how-to-get-free-https-on-your-website-using-lets-encrypt-ssl\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cloudkul.com\/blog\/how-to-get-free-https-on-your-website-using-lets-encrypt-ssl\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Learn how to get free HTTPS(SSL) on your website"}]},{"@type":"WebSite","@id":"https:\/\/cloudkul.com\/blog\/#website","url":"https:\/\/cloudkul.com\/blog\/","name":"Cloudkul","description":"Host your eCommerce Store on AWS with Optimized Performance","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cloudkul.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/d65bf252186a357da67ead26747e47b7","name":"Mohit Tiwari","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d958ee0f8ad4fe891d737cc821536709?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d958ee0f8ad4fe891d737cc821536709?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","caption":"Mohit Tiwari"},"url":"https:\/\/cloudkul.com\/blog\/author\/mohitkrtiwari-cloud767\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/12550"}],"collection":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/users\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/comments?post=12550"}],"version-history":[{"count":162,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/12550\/revisions"}],"predecessor-version":[{"id":19191,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/12550\/revisions\/19191"}],"wp:attachment":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/media?parent=12550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/categories?post=12550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/tags?post=12550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}