
{"id":996,"date":"2018-04-17T09:10:06","date_gmt":"2018-04-17T09:10:06","guid":{"rendered":"https:\/\/www.sslrenewals.com\/blog\/?p=996"},"modified":"2021-11-25T08:34:16","modified_gmt":"2021-11-25T08:34:16","slug":"install-ssl-certificate-on-ubuntu-server-with-apache2","status":"publish","type":"post","link":"https:\/\/sslrenewals.com\/blog\/install-ssl-certificate-on-ubuntu-server-with-apache2","title":{"rendered":"Install SSL Certificate on Ubuntu Server with Apache2"},"content":{"rendered":"<h2>Here\u2019s an easy guide to add SSL certificate on your Ubuntu server with Apache2<\/h2>\n<p>It\u2019s gotten to the point where everyone needs to get their website encrypted, no matter how big or small a website is. To do so, you need to install an SSL\/TLS certificate. Here comes the problem. A good percentage of the website administrators are from the non-technical background who may not have heard about SSL, let alone installing it. That\u2019s where we come into the picture. We try to help you out with your SSL\/TLS queries. And this time, we\u2019ve come up with a blog that will let you install an SSL certificate on your Ubuntu server with Apache2.<\/p>\n<p>Let\u2019s get straight to the crux of the matter without wasting much time. We have assumed that you have gone through the CSR generation and ordering process. But if you haven\u2019t, use our <a href=\"https:\/\/www.sslrenewals.com\/ssl-tools\/csr-generator.php\">CSR Generation Guide<\/a> to easily generate a CSR and <a href=\"https:\/\/www.sslrenewals.com\/ssl-brands.aspx\">purchase an SSL certificate<\/a> before installing your SSL certificate on Ubuntu.<\/p>\n<p><strong>Step 1:\u00a0 Download and Copy your certificate files<\/strong><\/p>\n<p>First, download your intermediate and certificate files. Now copy them, along with your private key, to your server directory where you intend to keep your certificate and key files. Don\u2019t forget to make them readable by root only.<\/p>\n<p><strong>Step 2: Find the Apache config file<\/strong><\/p>\n<p>Most of the times, the configuration file of Ubuntu with Apache2 can be accessed at:<\/p>\n<p><em>\/etc\/apache2\/sites-enabled\/your_site_name<\/em><\/p>\n<p>If you\u2019re not able to find it, run the below command.<\/p>\n<p><em>sudo a2ensite your_site_name<\/em><\/p>\n<p>Now that you\u2019ve found the file you\u2019re looking for, open it with a text editor (such as Notepad) and find &lt;VirtualHost&gt; block consisting of Apache setting.<\/p>\n<p><strong>Step 3: Find which SSL block you need to configure<\/strong><\/p>\n<p>Now here, you have got two options. Do you want your website to be accessible through secure HTTPS as well as insecure HTTP? Or, you want to enable HTTPS only? If you want the former, you\u2019ll need to create two separate files in <strong>\/etc\/apache2\/sites-enabled\/<\/strong>. One will be used for port 80 (HTTP) and one for port 443 (HTTPS). If the latter is your choice, create only a single file.<\/p>\n<p><strong>Step 5: Configure the &lt;VirtualHost&gt; block<\/strong><\/p>\n<p>Here\u2019s an example of a configured virtual host file:<\/p>\n<p>&lt;VirtualHost 192.168.0.1:443&gt;<\/p>\n<p>DocumentRoot \/var\/www\/<\/p>\n<p>SSLEngine on<\/p>\n<p>SSLCertificateFile \/path\/to\/your_domain_name.crt<\/p>\n<p>SSLCertificateKeyFile \/path\/to\/your_private.key<\/p>\n<p>SSLCertificateChainFile \/path\/to\/DigiCertCA.crt<\/p>\n<p>&lt;\/VirtualHost&gt;<\/p>\n<p>To make it clear, this is what the lines of the above command represent:<\/p>\n<p>SSLCertificateFile \u2013 Your main certificate file<\/p>\n<p>SSLCertificateKeyFile \u2013 Your private key<\/p>\n<p>SSLCertificateChainFile \u2013 Your intermediate certificate file<\/p>\n<p><strong>Step 6: Restart your server<\/strong><\/p>\n<p>Voila! You have successfully installed an SSL certificate on Ubuntu using Apache2.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here\u2019s an easy guide to add SSL certificate on your Ubuntu server with Apache2 It\u2019s gotten to the point where everyone needs to get their website encrypted, no matter how big or small a website is. To do so, you need to install an SSL\/TLS certificate. Here comes the problem. A good percentage of the website administrators are from the non-technical background who may not have heard about SSL, let alone installing it. That\u2019s where we come into the picture. We try to help you out with your SSL\/TLS queries. <a href=\"https:\/\/sslrenewals.com\/blog\/install-ssl-certificate-on-ubuntu-server-with-apache2\" class=\"more-link\">Continue Reading<\/a><\/p>\n","protected":false},"author":11,"featured_media":1001,"comment_status":"open","ping_status":"open","sticky":false,"template":"fullwidth-post.php","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[146],"tags":[],"class_list":["post-996","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ssl-installation"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install SSL Certificate on Ubuntu Server with Apache2<\/title>\n<meta name=\"description\" content=\"The installation of an SSL Certificate on Ubuntu is a straightforward process. Use these instructions to setup SSL Certificate with Apache2.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sslrenewals.com\/blog\/install-ssl-certificate-on-ubuntu-server-with-apache2\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install SSL Certificate on Ubuntu Server with Apache2\" \/>\n<meta property=\"og:description\" content=\"The installation of an SSL Certificate on Ubuntu is a straightforward process. Use these instructions to setup SSL Certificate with Apache2.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sslrenewals.com\/blog\/install-ssl-certificate-on-ubuntu-server-with-apache2\" \/>\n<meta property=\"og:site_name\" content=\"SSLRenewals Blog - SSL Certificates News | SSL Articles\" \/>\n<meta property=\"article:published_time\" content=\"2018-04-17T09:10:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-25T08:34:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/sslrenewals.com\/blog\/wp-content\/uploads\/2018\/04\/install-ssl-on-ubuntu-server-apache2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"200\" \/>\n\t<meta property=\"og:image:height\" content=\"200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Adam Thompson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Adam Thompson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/install-ssl-certificate-on-ubuntu-server-with-apache2#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/install-ssl-certificate-on-ubuntu-server-with-apache2\"},\"author\":{\"name\":\"Adam Thompson\",\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/#\\\/schema\\\/person\\\/5d8f5aee08b2733bdbf2933439da269e\"},\"headline\":\"Install SSL Certificate on Ubuntu Server with Apache2\",\"datePublished\":\"2018-04-17T09:10:06+00:00\",\"dateModified\":\"2021-11-25T08:34:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/install-ssl-certificate-on-ubuntu-server-with-apache2\"},\"wordCount\":472,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/install-ssl-certificate-on-ubuntu-server-with-apache2#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/install-ssl-on-ubuntu-server-apache2.jpg\",\"articleSection\":[\"SSL Installation\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/install-ssl-certificate-on-ubuntu-server-with-apache2\",\"url\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/install-ssl-certificate-on-ubuntu-server-with-apache2\",\"name\":\"How to Install SSL Certificate on Ubuntu Server with Apache2\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/install-ssl-certificate-on-ubuntu-server-with-apache2#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/install-ssl-certificate-on-ubuntu-server-with-apache2#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/install-ssl-on-ubuntu-server-apache2.jpg\",\"datePublished\":\"2018-04-17T09:10:06+00:00\",\"dateModified\":\"2021-11-25T08:34:16+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/#\\\/schema\\\/person\\\/5d8f5aee08b2733bdbf2933439da269e\"},\"description\":\"The installation of an SSL Certificate on Ubuntu is a straightforward process. Use these instructions to setup SSL Certificate with Apache2.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/install-ssl-certificate-on-ubuntu-server-with-apache2#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/install-ssl-certificate-on-ubuntu-server-with-apache2\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/install-ssl-certificate-on-ubuntu-server-with-apache2#primaryimage\",\"url\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/install-ssl-on-ubuntu-server-apache2.jpg\",\"contentUrl\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/install-ssl-on-ubuntu-server-apache2.jpg\",\"width\":200,\"height\":200,\"caption\":\"Install SSL on Ubuntu Server with Apache2\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/install-ssl-certificate-on-ubuntu-server-with-apache2#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/sslrenewals.com\\\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install SSL Certificate on Ubuntu Server with Apache2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/\",\"name\":\"SSLRenewals Blog - SSL Certificates News | SSL Articles\",\"description\":\"SSLRenewals Blog: We publish SSL Certificate News, SSL Articles for website security from RapidSSL, Symantec (VeriSign), GeoTrust, Thawte and Comodo.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/#\\\/schema\\\/person\\\/5d8f5aee08b2733bdbf2933439da269e\",\"name\":\"Adam Thompson\",\"url\":\"https:\\\/\\\/sslrenewals.com\\\/blog\\\/author\\\/adam\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install SSL Certificate on Ubuntu Server with Apache2","description":"The installation of an SSL Certificate on Ubuntu is a straightforward process. Use these instructions to setup SSL Certificate with Apache2.","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:\/\/sslrenewals.com\/blog\/install-ssl-certificate-on-ubuntu-server-with-apache2","og_locale":"en_US","og_type":"article","og_title":"How to Install SSL Certificate on Ubuntu Server with Apache2","og_description":"The installation of an SSL Certificate on Ubuntu is a straightforward process. Use these instructions to setup SSL Certificate with Apache2.","og_url":"https:\/\/sslrenewals.com\/blog\/install-ssl-certificate-on-ubuntu-server-with-apache2","og_site_name":"SSLRenewals Blog - SSL Certificates News | SSL Articles","article_published_time":"2018-04-17T09:10:06+00:00","article_modified_time":"2021-11-25T08:34:16+00:00","og_image":[{"width":200,"height":200,"url":"https:\/\/sslrenewals.com\/blog\/wp-content\/uploads\/2018\/04\/install-ssl-on-ubuntu-server-apache2.jpg","type":"image\/jpeg"}],"author":"Adam Thompson","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Adam Thompson","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sslrenewals.com\/blog\/install-ssl-certificate-on-ubuntu-server-with-apache2#article","isPartOf":{"@id":"https:\/\/sslrenewals.com\/blog\/install-ssl-certificate-on-ubuntu-server-with-apache2"},"author":{"name":"Adam Thompson","@id":"https:\/\/sslrenewals.com\/blog\/#\/schema\/person\/5d8f5aee08b2733bdbf2933439da269e"},"headline":"Install SSL Certificate on Ubuntu Server with Apache2","datePublished":"2018-04-17T09:10:06+00:00","dateModified":"2021-11-25T08:34:16+00:00","mainEntityOfPage":{"@id":"https:\/\/sslrenewals.com\/blog\/install-ssl-certificate-on-ubuntu-server-with-apache2"},"wordCount":472,"commentCount":0,"image":{"@id":"https:\/\/sslrenewals.com\/blog\/install-ssl-certificate-on-ubuntu-server-with-apache2#primaryimage"},"thumbnailUrl":"https:\/\/sslrenewals.com\/blog\/wp-content\/uploads\/2018\/04\/install-ssl-on-ubuntu-server-apache2.jpg","articleSection":["SSL Installation"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/sslrenewals.com\/blog\/install-ssl-certificate-on-ubuntu-server-with-apache2","url":"https:\/\/sslrenewals.com\/blog\/install-ssl-certificate-on-ubuntu-server-with-apache2","name":"How to Install SSL Certificate on Ubuntu Server with Apache2","isPartOf":{"@id":"https:\/\/sslrenewals.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/sslrenewals.com\/blog\/install-ssl-certificate-on-ubuntu-server-with-apache2#primaryimage"},"image":{"@id":"https:\/\/sslrenewals.com\/blog\/install-ssl-certificate-on-ubuntu-server-with-apache2#primaryimage"},"thumbnailUrl":"https:\/\/sslrenewals.com\/blog\/wp-content\/uploads\/2018\/04\/install-ssl-on-ubuntu-server-apache2.jpg","datePublished":"2018-04-17T09:10:06+00:00","dateModified":"2021-11-25T08:34:16+00:00","author":{"@id":"https:\/\/sslrenewals.com\/blog\/#\/schema\/person\/5d8f5aee08b2733bdbf2933439da269e"},"description":"The installation of an SSL Certificate on Ubuntu is a straightforward process. Use these instructions to setup SSL Certificate with Apache2.","breadcrumb":{"@id":"https:\/\/sslrenewals.com\/blog\/install-ssl-certificate-on-ubuntu-server-with-apache2#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sslrenewals.com\/blog\/install-ssl-certificate-on-ubuntu-server-with-apache2"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sslrenewals.com\/blog\/install-ssl-certificate-on-ubuntu-server-with-apache2#primaryimage","url":"https:\/\/sslrenewals.com\/blog\/wp-content\/uploads\/2018\/04\/install-ssl-on-ubuntu-server-apache2.jpg","contentUrl":"https:\/\/sslrenewals.com\/blog\/wp-content\/uploads\/2018\/04\/install-ssl-on-ubuntu-server-apache2.jpg","width":200,"height":200,"caption":"Install SSL on Ubuntu Server with Apache2"},{"@type":"BreadcrumbList","@id":"https:\/\/sslrenewals.com\/blog\/install-ssl-certificate-on-ubuntu-server-with-apache2#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/sslrenewals.com\/blog"},{"@type":"ListItem","position":2,"name":"Install SSL Certificate on Ubuntu Server with Apache2"}]},{"@type":"WebSite","@id":"https:\/\/sslrenewals.com\/blog\/#website","url":"https:\/\/sslrenewals.com\/blog\/","name":"SSLRenewals Blog - SSL Certificates News | SSL Articles","description":"SSLRenewals Blog: We publish SSL Certificate News, SSL Articles for website security from RapidSSL, Symantec (VeriSign), GeoTrust, Thawte and Comodo.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sslrenewals.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/sslrenewals.com\/blog\/#\/schema\/person\/5d8f5aee08b2733bdbf2933439da269e","name":"Adam Thompson","url":"https:\/\/sslrenewals.com\/blog\/author\/adam"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/sslrenewals.com\/blog\/wp-content\/uploads\/2018\/04\/install-ssl-on-ubuntu-server-apache2.jpg","_links":{"self":[{"href":"https:\/\/sslrenewals.com\/blog\/wp-json\/wp\/v2\/posts\/996","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sslrenewals.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sslrenewals.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sslrenewals.com\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/sslrenewals.com\/blog\/wp-json\/wp\/v2\/comments?post=996"}],"version-history":[{"count":0,"href":"https:\/\/sslrenewals.com\/blog\/wp-json\/wp\/v2\/posts\/996\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sslrenewals.com\/blog\/wp-json\/wp\/v2\/media\/1001"}],"wp:attachment":[{"href":"https:\/\/sslrenewals.com\/blog\/wp-json\/wp\/v2\/media?parent=996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sslrenewals.com\/blog\/wp-json\/wp\/v2\/categories?post=996"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sslrenewals.com\/blog\/wp-json\/wp\/v2\/tags?post=996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}