{"id":40735,"date":"2016-09-26T10:59:17","date_gmt":"2016-09-26T05:29:17","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=40735"},"modified":"2016-09-26T14:59:41","modified_gmt":"2016-09-26T09:29:41","slug":"commercial-ssl-certificate-apache","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/commercial-ssl-certificate-apache\/","title":{"rendered":"Using Commercial SSL Certificates on your Linux Apache Server"},"content":{"rendered":"<p>Refer\u00a0<a title=\"How to Set-up SSL certificates on your Linux server\" href=\"http:\/\/www.tothenew.com\/blog\/how-to-set-up-ssl-certificates-on-your-server\/\" target=\"_blank\">this blog<\/a> to get a basic understanding of using self-signed SSL certificates on your Apache server.<\/p>\n<p><span style=\"font-weight: 400;\">Also, the above link will help you in generating a private key and a CSR (Certificate Signing Request), which contains information about your country, locality, company, your public key, etc.; for your server.<\/span><\/p>\n<p>For commercial SSL certificates firstly a private key is generated as <a title=\"How to Set-up SSL certificates on your Linux server\" href=\"http:\/\/www.tothenew.com\/blog\/how-to-set-up-ssl-certificates-on-your-server\/\" target=\"_blank\">mentioned in the blog<\/a>. Then using the private key a CSR is generated.<\/p>\n<p><span style=\"font-weight: 400;\">Give this CSR to the Certification Authority or Certificate Authority (CA) Authority (<\/span><strong>Here, GoDaddy<\/strong><span style=\"font-weight: 400;\">) so that it can generate an SSL certificate for your domain. Also, you need to provide some documents to ensure that the domain name belongs to you.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">After CA has verified the documents and used your CSR to create the SSL Certificate, you can download it from <\/span><strong>My Products Section &gt; SSL CERTIFICATES &gt; Manage &gt; Download.<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">After downloading you\u2019ll notice that it contains two files one named <\/span><strong>&lt;some_hash_value&gt;.crt<\/strong><span style=\"font-weight: 400;\"> and other <\/span><strong>gd_bundle-g2-g1.crt.<\/strong><\/p>\n<p>So your Apache(version &lt; 2.4.8) configuration becomes:<\/p>\n<p>[sourcecode language=&#8221;bash&#8221;]<br \/>\n        SSLCertificateFile      &lt;&lt; path_to_&lt;some_hash_value&gt;.crt &gt;&gt;<br \/>\n        SSLCertificateKeyFile   &lt;&lt; path_to_private_key_used_for_csr &gt;&gt;<br \/>\n        SSLCertificateChainFile &lt;&lt; path_to_gd_bundle-g2-g1.crt &gt;&gt;<br \/>\n[\/sourcecode]<\/p>\n<p>And Apache(version &gt; 2.4.8) configuration becomes:<\/p>\n<p>[sourcecode language=&#8221;bash&#8221;]<br \/>\n        SSLCertificateFile      &lt;&lt; path_to_&lt;some_hash_value&gt;.crt &gt;&gt;<br \/>\n        SSLCertificateKeyFile   &lt;&lt; path_to_private_key_used_for_csr &gt;&gt;<br \/>\n        SSLCACertificatePath    &lt;&lt; path_to_gd_bundle-g2-g1.crt &gt;&gt;<br \/>\n[\/sourcecode]<\/p>\n<p>Now, reload\/restart the Apache to see the effective changes.<br \/>\nThe website will now load with secure https connection.<\/p>\n<p>The details of the certificate can be viewed in the browser by visiting <strong>Inspect Element &gt; Security &gt; View certificate.<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-40742\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/09\/view_certificate.png\" alt=\"View SSL Ceritificate\" width=\"693\" height=\"390\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2016\/09\/view_certificate.png 693w, \/blog\/wp-ttn-blog\/uploads\/2016\/09\/view_certificate-300x168.png 300w, \/blog\/wp-ttn-blog\/uploads\/2016\/09\/view_certificate-624x351.png 624w\" sizes=\"(max-width: 693px) 100vw, 693px\" \/><\/p>\n<p>Hope after reading this you\u2019ll be able to easily apply commercial certificates(especially GoDaddy&#8217;s) on your Apache server, and there will be no confusion regarding which file to be used as SSLCertificateFile and SSLCertificateChainFile\/SSLCACertificatePath.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Refer\u00a0this blog to get a basic understanding of using self-signed SSL certificates on your Apache server. Also, the above link will help you in generating a private key and a CSR (Certificate Signing Request), which contains information about your country, locality, company, your public key, etc.; for your server. For commercial SSL certificates firstly a [&hellip;]<\/p>\n","protected":false},"author":913,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":1},"categories":[2348,1],"tags":[18,2366,3233,1892,4041,260,4040,824,3144],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/40735"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/913"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=40735"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/40735\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=40735"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=40735"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=40735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}