{"id":7517,"date":"2018-10-08T11:17:07","date_gmt":"2018-10-08T11:17:07","guid":{"rendered":"https:\/\/www.bacancytechnology.com\/blog\/?p=7517"},"modified":"2024-02-26T04:18:48","modified_gmt":"2024-02-26T04:18:48","slug":"why-do-i-need-an-ssl-certificate-for-my-website","status":"publish","type":"post","link":"https:\/\/www.bacancytechnology.com\/blog\/how-to-install-ssl-on-website","title":{"rendered":"Why Do I Need an SSL Certificate For My Website?"},"content":{"rendered":"<style>.background-post-header-img { min-height: 400px; background-position: 50% 0%;}<\/style>\n<p>By installing SSL certificate on your website you can leverage HTTPS protocol to securely transfer the information between the server and end-user machine. This is necessary when you transfer sensitive information, such as credit card details on payment\/checkout pages and personal details on login and signup forms.<\/p>\n<p>HTTPS also protects the website against Man in the Middle attacks.<br \/>\nFor more details on this, please go through doesmysiteneedhttps,com to get a clear picture of why every website should be served securely.<\/p>\n<h5>From where You Can Get FREE SSL Certificate?<\/h5>\n<p>However, configuration of SSL certificate in a website is complicated and time-consuming task. Let\u2019s Encrypt(LE) is a free and open certificate authority that allows to simplify and automate the process of the trusted SSL certificates integration.<\/p>\n<p>For now, we are using \u2018<a href=\"https:\/\/www.sslforfree.com\" target=\"_blank\" rel=\"noopener\">https:\/\/www.sslforfree.com\/<\/a>\u2019 to make it simple and fast(this site also make use of let\u2019s Encrypt to generate SSL)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bacancytechnology.com\/blog\/wp-content\/uploads\/2018\/10\/ssl_1.jpg\" alt=\"SSL for Free\" width=\"760\" height=\"432\" class=\"aligncenter size-full wp-image-7519\" srcset=\"https:\/\/www.bacancytechnology.com\/blog\/wp-content\/uploads\/2018\/10\/ssl_1.jpg 760w, https:\/\/www.bacancytechnology.com\/blog\/wp-content\/uploads\/2018\/10\/ssl_1-300x171.jpg 300w, https:\/\/www.bacancytechnology.com\/blog\/wp-content\/uploads\/2018\/10\/ssl_1-20x11.jpg 20w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/p>\n<h5>* How to generate SSL certificate?<\/h5>\n<p><strong>Step 1:<\/strong> Write your domain name in the text box and click \u201cCreate Free SSL Certificate\u201d button,<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bacancytechnology.com\/blog\/wp-content\/uploads\/2018\/10\/ssl_2.jpg\" alt=\"STEP-1\" width=\"760\" height=\"218\" class=\"aligncenter size-full wp-image-7520\" srcset=\"https:\/\/www.bacancytechnology.com\/blog\/wp-content\/uploads\/2018\/10\/ssl_2.jpg 760w, https:\/\/www.bacancytechnology.com\/blog\/wp-content\/uploads\/2018\/10\/ssl_2-300x86.jpg 300w, https:\/\/www.bacancytechnology.com\/blog\/wp-content\/uploads\/2018\/10\/ssl_2-20x6.jpg 20w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/p>\n<p><strong>Step 2:<\/strong> Now this will redirect you to \u201cCertificate Validation \/ Verification Page<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bacancytechnology.com\/blog\/wp-content\/uploads\/2018\/10\/ssl_3.jpg\" alt=\"STEP-2\" width=\"760\" height=\"365\" class=\"aligncenter size-full wp-image-7521\" srcset=\"https:\/\/www.bacancytechnology.com\/blog\/wp-content\/uploads\/2018\/10\/ssl_3.jpg 760w, https:\/\/www.bacancytechnology.com\/blog\/wp-content\/uploads\/2018\/10\/ssl_3-300x144.jpg 300w, https:\/\/www.bacancytechnology.com\/blog\/wp-content\/uploads\/2018\/10\/ssl_3-20x10.jpg 20w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/p>\n<p>Note: Here you will find three ways to verify your Domain name ownership, it prevents other people from getting an SSL certificate for your domain.<\/p>\n<p><strong>Step 3:<\/strong> For this demo we are using Third option \u201cManual Verification (DNS)\u201d , you can verify the same using other option too but using DNS is one of the easiest way to verify ownership, Click on  \u201cManually Verify Domain\u201d button<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bacancytechnology.com\/blog\/wp-content\/uploads\/2018\/10\/ssl_4.jpg\" alt=\"STEP-3\" width=\"760\" height=\"534\" class=\"aligncenter size-full wp-image-7522\" srcset=\"https:\/\/www.bacancytechnology.com\/blog\/wp-content\/uploads\/2018\/10\/ssl_4.jpg 760w, https:\/\/www.bacancytechnology.com\/blog\/wp-content\/uploads\/2018\/10\/ssl_4-300x211.jpg 300w, https:\/\/www.bacancytechnology.com\/blog\/wp-content\/uploads\/2018\/10\/ssl_4-20x14.jpg 20w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/p>\n<p><strong>Step 4:<\/strong> Now it will present Updated DNS Records.Simply follow the listed below steps, add txt records to your DNS and after verification click on \u201cDownload SSL certificate\u201d button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bacancytechnology.com\/blog\/wp-content\/uploads\/2018\/10\/ssl_5.jpg\" alt=\"STEP-4\" width=\"760\" height=\"481\" class=\"aligncenter size-full wp-image-7523\" srcset=\"https:\/\/www.bacancytechnology.com\/blog\/wp-content\/uploads\/2018\/10\/ssl_5.jpg 760w, https:\/\/www.bacancytechnology.com\/blog\/wp-content\/uploads\/2018\/10\/ssl_5-300x190.jpg 300w, https:\/\/www.bacancytechnology.com\/blog\/wp-content\/uploads\/2018\/10\/ssl_5-20x13.jpg 20w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/p>\n<p><strong>Step 5:<\/strong> It will be downloaded as zip containing SSL certificates and private.key<\/p>\n<h5>* Installing SSL on your Server<\/h5>\n<p><strong>Step 1:<\/strong> Before installation, Copy all certificate files to your server<\/p>\n<ul>\n<li>To copy files between your computer and your instance you can use an FTP service like FileZilla or the command scp which stands for secure copy.<\/li>\n<li>To use scp with a key pair use the following command: scp -i path\/to\/key file\/to\/copy user@ec2-xx-xx-xxx-xxx.compute-1.amazonaws.com:path\/to\/file.<\/li>\n<li>To use it without a key pair, just omit the flag -i and type in the password of the user when prompted.<\/li>\n<\/ul>\n<p><strong>Step 2:<\/strong> Before installation, Copy all certificate<\/p>\n<ul>\n<li>Command for merge\n<pre>cat ca_bundle.crt certificate.crt &gt; certificate_ssl.crt<\/pre>\n<\/li>\n<li>Go to your nginxconfig file using below path\n<pre>sudo vi \/etc\/nginx\/sites-enabled\/(your file name)<\/pre>\n<\/li>\n<li>Paste following line into your config file files to your server\n<pre>server {\r\n\tlisten443;\r\n\tsslon;\r\n\tssl_certificate \/etc\/ssl\/certificate_ssl.crt;\r\n\tssl_certificate_key \/etc\/ssl\/private.key;\r\n\tserver_name  yourdomainname_com;\r\n\taccess_log \/var\/log\/nginx\/nginx.vhost.access.log;\r\n\terror_log \/var\/log\/nginx\/nginx.vhost.error.log;\r\n\tlocation \/ {\r\n\t\troot \/var\/www\/;\r\n\t\tindex index.html;\r\n\t}\r\n}\r\n<\/pre>\n<\/li>\n<\/ul>\n<p><strong>Step 3:<\/strong> Installing a SSL certificate on Apache<\/p>\n<pre>&lt; VirtualHost *:443 &gt;\r\n\tDocumentRoot \/var\/www\/website\r\n\tServerName www.yourdomainname_com.com\r\n\tSSLEngineon\r\n\tSSLCertificateFile \/etc\/ssl\/crt\/primary.crt\r\n\tSSLCertificateKeyFile \/etc\/ssl\/crt\/private.key\r\n\tSSLCertificateChainFile \/etc\/ssl\/crt\/intermediate.crt\r\n&lt; \/VirtualHost &gt;\r\n<\/pre>\n<p><strong>Step 4:<\/strong> Save and exit, restart Nginx\/Apache in order to apply the changes. You can restart Nginx\/Apache with this command:<\/p>\n<ul>\n<li>Restart Apache<br \/>\nsudo service apache2 reload(Debian, Ubuntu, etc.)<br \/>\nor<br \/>\nsudo service httpd reload (RHEL, CentOS, etc.)<\/li>\n<li>Restart Nginx<br \/>\nnginx -s reload<br \/>\norsudo service nginx restart<\/li>\n<\/ul>\n<p><strong>Step 5:<\/strong> Awesome, now you can check your site with https:\/\/<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bacancytechnology.com\/blog\/wp-content\/uploads\/2018\/10\/ssl_6.jpg\" alt=\"STEP-5\" width=\"385\" height=\"32\" class=\"size-full wp-image-7549\" srcset=\"https:\/\/www.bacancytechnology.com\/blog\/wp-content\/uploads\/2018\/10\/ssl_6.jpg 385w, https:\/\/www.bacancytechnology.com\/blog\/wp-content\/uploads\/2018\/10\/ssl_6-300x25.jpg 300w, https:\/\/www.bacancytechnology.com\/blog\/wp-content\/uploads\/2018\/10\/ssl_6-20x2.jpg 20w\" sizes=\"auto, (max-width: 385px) 100vw, 385px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>By installing SSL certificate on your website you can leverage HTTPS protocol to securely transfer the information between the server and end-user machine. This is necessary when you transfer sensitive information, such as credit card details on payment\/checkout pages and personal details on login and signup forms. HTTPS also protects the website against Man in [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":7524,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"_lmt_disableupdate":"no","_lmt_disable":"","footnotes":""},"categories":[1269],"tags":[],"coauthors":[1565],"class_list":["post-7517","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security-and-compliance"],"acf":[],"modified_by":"Chandresh Patel","_links":{"self":[{"href":"https:\/\/www.bacancytechnology.com\/blog\/wp-json\/wp\/v2\/posts\/7517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bacancytechnology.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bacancytechnology.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/blog\/wp-json\/wp\/v2\/comments?post=7517"}],"version-history":[{"count":0,"href":"https:\/\/www.bacancytechnology.com\/blog\/wp-json\/wp\/v2\/posts\/7517\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/blog\/wp-json\/wp\/v2\/media\/7524"}],"wp:attachment":[{"href":"https:\/\/www.bacancytechnology.com\/blog\/wp-json\/wp\/v2\/media?parent=7517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/blog\/wp-json\/wp\/v2\/categories?post=7517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/blog\/wp-json\/wp\/v2\/tags?post=7517"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/blog\/wp-json\/wp\/v2\/coauthors?post=7517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}