{"id":372,"date":"2024-06-13T13:28:59","date_gmt":"2024-06-13T13:28:59","guid":{"rendered":"https:\/\/123webhostingindia.com\/tutorials\/?p=372"},"modified":"2024-06-13T13:34:48","modified_gmt":"2024-06-13T13:34:48","slug":"how-to-install-free-ssl-certificate","status":"publish","type":"post","link":"https:\/\/123webhostingindia.com\/tutorials\/how-to-install-free-ssl-certificate\/","title":{"rendered":"How to install free SSL certificate?"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"480\" height=\"270\" src=\"https:\/\/123webhostingindia.com\/tutorials\/wp-content\/uploads\/2024\/06\/Free-SSL.jpg\" alt=\"\" class=\"wp-image-377\" srcset=\"https:\/\/123webhostingindia.com\/tutorials\/wp-content\/uploads\/2024\/06\/Free-SSL.jpg 480w, https:\/\/123webhostingindia.com\/tutorials\/wp-content\/uploads\/2024\/06\/Free-SSL-300x169.jpg 300w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#using-certbot-with-apache-or-nginx\">Using Certbot with Apache or Nginx<\/a><ul><li><a href=\"#prerequisites\">Prerequisites:<\/a><\/li><li><a href=\"#steps-for-installation\">Steps for Installation:<\/a><\/li><\/ul><\/li><li><a href=\"#using-lets-encrypt-with-c-panel\">Using Let&#8217;s Encrypt with cPanel<\/a><\/li><li><a href=\"#manual-installation-using-csr-for-free-ssl-certificate-signing-request\">Manual Installation Using CSR for free SSL(Certificate Signing Request)<\/a><\/li><li><a href=\"#conclusion\">Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Installing a <a href=\"https:\/\/www.squarebrothers.com\/ssl-certificate-india\/\" target=\"_blank\" rel=\"noopener\">free SSL certificate<\/a> on your website is a great way to secure your site without incurring additional costs. One of the most popular providers of free SSL certificates is Let&#8217;s Encrypt. Below are the steps to install a Let&#8217;s Encrypt SSL certificate on a website hosted on a server with common environments such as Apache, Nginx, or using a control panel like cPanel.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"using-certbot-with-apache-or-nginx\">Using Certbot with Apache or Nginx<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Certbot is a free, open-source software tool for automatically using Let&#8217;s Encrypt certificates on manually-administered websites to enable HTTPS.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"prerequisites\">Prerequisites:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A registered domain name.<\/li>\n\n\n\n<li>Access to your server&#8217;s terminal (SSH access).<\/li>\n\n\n\n<li>A web server (Apache or Nginx) installed and running.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"steps-for-installation\">Steps for Installation:<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Update Your Package Lists:<\/strong><ul><li>Ensure your package lists are up-to-date.<\/li><\/ul>bashCopy code<code>sudo apt-get update<\/code><\/li>\n\n\n\n<li><strong>Install Certbot:<\/strong>\n<ul class=\"wp-block-list\">\n<li>For Apache:bashCopy code<code>sudo apt-get install certbot python3-certbot-apache<\/code><\/li>\n\n\n\n<li>For Nginx:bashCopy code<code>sudo apt-get install certbot python3-certbot-nginx<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Obtain the SSL Certificate:<\/strong>\n<ul class=\"wp-block-list\">\n<li>For Apache:bashCopy code<code>sudo certbot --apache<\/code><\/li>\n\n\n\n<li>For Nginx:bashCopy code<code>sudo certbot --nginx<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Follow the Prompts:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Certbot will prompt you to enter your email address and agree to the terms of service.<\/li>\n\n\n\n<li>It will then ask for the domain names you want to activate HTTPS for (you can list multiple domains separated by commas).<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Automatic Renewal:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Certbot sets up a cron job or systemd timer to automatically renew the certificates before they expire.<\/li>\n\n\n\n<li>You can test the automatic renewal process with:bashCopy code<code>sudo certbot renew --dry-run<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"using-lets-encrypt-with-c-panel\">Using Let&#8217;s Encrypt with cPanel<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If your hosting provider uses cPanel, the process is more straightforward:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Log in to cPanel:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Access your cPanel account through your hosting provider.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Navigate to SSL\/TLS:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Look for the &#8220;SSL\/TLS&#8221; section or &#8220;Security&#8221; section, then find &#8220;Let&#8217;s Encrypt SSL.&#8221;<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Install the SSL Certificate:<\/strong>\n<ul class=\"wp-block-list\">\n<li>In the Let&#8217;s Encrypt interface, you can select the domain you want to secure.<\/li>\n\n\n\n<li>Follow the prompts to install the SSL certificate. cPanel will handle most of the configuration for you.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Verify Installation:<\/strong>\n<ul class=\"wp-block-list\">\n<li>After installation, ensure the certificate is active by visiting your website using <code>https:\/\/<\/code> and checking the security indicator in the browser.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"manual-installation-using-csr-for-free-ssl-certificate-signing-request\">Manual Installation Using CSR for free SSL(Certificate Signing Request)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you need to manually install a free SSL certificate, such as from ZeroSSL or SSL For Free, you can generate a CSR and follow their process:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Generate CSR:<\/strong><ul><li>You can generate a CSR and private key using OpenSSL:<\/li><\/ul>bashCopy code<code>openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csr<\/code><\/li>\n\n\n\n<li><strong>Request the SSL Certificate:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Go to the website of a free SSL provider like ZeroSSL or SSL For Free.<\/li>\n\n\n\n<li>Use the CSR to request a certificate.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Download the Certificate Files:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Once the certificate is issued, download the necessary files, typically including the certificate file and the CA bundle.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Install the Certificate:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Place the certificate files on your server.<\/li>\n\n\n\n<li>For Apache, edit the virtual host file:apacheCopy code<code>&lt;VirtualHost *:443> ServerName yourdomain.com DocumentRoot \/var\/www\/yourdomain SSLEngine on SSLCertificateFile \/etc\/ssl\/certs\/yourdomain.crt SSLCertificateKeyFile \/etc\/ssl\/private\/yourdomain.key SSLCertificateChainFile \/etc\/ssl\/certs\/chain.pem &lt;\/VirtualHost><\/code><\/li>\n\n\n\n<li>For Nginx, edit the server block file:nginxCopy code<code>server { listen 443 ssl; server_name yourdomain.com; ssl_certificate \/etc\/ssl\/certs\/yourdomain.crt; ssl_certificate_key \/etc\/ssl\/private\/yourdomain.key; ssl_trusted_certificate \/etc\/ssl\/certs\/chain.pem; location \/ { root \/var\/www\/yourdomain; } }<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Restart the Web Server:<\/strong><ul><li>Restart Apache or Nginx to apply the changes:<\/li><\/ul>bashCopy code<code>sudo systemctl restart apache2 <\/code>bashCopy code<code>sudo systemctl restart nginx<\/code><\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Using Let&#8217;s Encrypt with Certbot or cPanel provides an easy way to secure your website with a free SSL certificate. Regularly updating and renewing your <a href=\"http:\/\/123webhostingindia.com\">SSL certificates<\/a> is essential for maintaining security and ensuring uninterrupted HTTPS service. If you&#8217;re using a manual installation method, always keep your private key secure and follow best practices for managing certificates.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing a free SSL certificate on your website is a great way to secure your site without incurring additional costs. One of the most popular providers of free SSL certificates&#8230;<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-372","post","type-post","status-publish","format-standard","hentry","category-free-ssl"],"_links":{"self":[{"href":"https:\/\/123webhostingindia.com\/tutorials\/wp-json\/wp\/v2\/posts\/372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/123webhostingindia.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/123webhostingindia.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/123webhostingindia.com\/tutorials\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/123webhostingindia.com\/tutorials\/wp-json\/wp\/v2\/comments?post=372"}],"version-history":[{"count":5,"href":"https:\/\/123webhostingindia.com\/tutorials\/wp-json\/wp\/v2\/posts\/372\/revisions"}],"predecessor-version":[{"id":378,"href":"https:\/\/123webhostingindia.com\/tutorials\/wp-json\/wp\/v2\/posts\/372\/revisions\/378"}],"wp:attachment":[{"href":"https:\/\/123webhostingindia.com\/tutorials\/wp-json\/wp\/v2\/media?parent=372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/123webhostingindia.com\/tutorials\/wp-json\/wp\/v2\/categories?post=372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/123webhostingindia.com\/tutorials\/wp-json\/wp\/v2\/tags?post=372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}