{"id":24263,"date":"2022-02-02T14:27:24","date_gmt":"2022-02-02T14:27:24","guid":{"rendered":"https:\/\/1-grid.com\/knowledge\/vps-how-to-install-your-ssl-certificate-on-your-ubuntu-server\/"},"modified":"2025-05-27T09:59:32","modified_gmt":"2025-05-27T09:59:32","slug":"vps-how-to-install-your-ssl-certificate-on-your-ubuntu-server","status":"publish","type":"ht_kb","link":"https:\/\/1grid.co.za\/knowledge\/vps-how-to-install-your-ssl-certificate-on-your-ubuntu-server\/","title":{"rendered":"VPS: How to install your SSL certificate on your Ubuntu Server"},"content":{"rendered":"<blockquote><p><span style=\"font-family: Helvetica, sans-serif; color: #000000;\">This article provides you with information on how to install SSL certificates on your VPS server running Ubuntu OS.<\/span><\/p><\/blockquote>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<p><span style=\"font-family: Helvetica, sans-serif; color: #000000;\">The following steps are based on the Ubuntu server with Apache2.<\/span><\/p>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<h2><span style=\"font-family: Helvetica, sans-serif; color: #000000;\"><span style=\"font-size: 18px;\"><strong>Step 1 &#8211; Copy\/paste your SSL certificate files to the server<\/strong><\/span><\/span><\/h2>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<p><span style=\"font-family: Helvetica, sans-serif; color: #000000;\">Download your Intermediate Certificate (CertificateAuthority.cert) and SSL Certificate (Example_Your_Domain.cert) from your Certificate Authority.<\/span><\/p>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<p><span style=\"font-family: Helvetica, sans-serif; color: #000000;\">Copy the Intermediate Certificate and SSL Certificate to the directory on the server where you will keep the certificate and key files. Make them readable by root only.<\/span><\/p>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<h2><span style=\"font-family: Helvetica, sans-serif; color: #000000;\"><span style=\"font-size: 18px;\"><strong>Step 2 &#8211; Locate the Apache configuration file for editing<\/strong><\/span><\/span><\/h2>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<p><span style=\"font-family: Helvetica, sans-serif; color: #000000;\">Generally, in Ubuntu\u2019s Apache the configuration file can be found in;<\/span><\/p>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<pre><span style=\"font-family: Helvetica,sans-serif;\">\/etc\/apache2\/sites-enabled\/example_your_domain<\/span><\/pre>\n<p><span style=\"font-family: Helvetica, sans-serif; color: #000000;\"><strong>Note:\u00a0<\/strong>If you are unable to find the configuration file on the folder location \u201csites-enabled\u201d then you must run the following command<\/span><\/p>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<pre><span style=\"font-family: Helvetica,sans-serif;\">\u201csudo a2ensite example_your_domain\u201d<\/span><\/pre>\n<p><span style=\"font-family: Helvetica, sans-serif; color: #000000;\">Open the configuration file with a text editor and locate blocks that contain the Apache setting.<\/span><\/p>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<h2><span style=\"font-family: Helvetica, sans-serif; color: #000000;\"><span style=\"font-size: 18px;\"><strong>Step 3 &#8211; Find the SSL block to configure<\/strong><\/span><\/span><\/h2>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<p><span style=\"font-family: Helvetica, sans-serif; color: #000000;\">If your intention to access your website using both \u201chttps\u201d and \u201chttp\u201d connections, then you need two separate files in \/etc\/apache2\/sites-enabled\/. One is for port 80 and another for port 443.<\/span><\/p>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<h2><span style=\"font-family: Helvetica, sans-serif; color: #000000;\"><span style=\"font-size: 18px;\"><strong>Step 4 &#8211; Configure the block for the \u201cSSL-enabled\u201d website.<\/strong><\/span><\/span><\/h2>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<p><span style=\"font-family: Helvetica, sans-serif; color: #000000;\">Here is an example of a virtual host configured for SSL certificate connection. The parts in bold letters must be configured to an established secure connection of HTTPS on Ubuntu Server with Apache2<\/span><\/p>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<pre><span style=\"font-family: Helvetica,sans-serif;\">DocumentRoot \/var\/www\/ SSLEngine on SSLCertificateFile \/path\/to\/example _your _domain.crt SSLCertificateKeyFile \/path\/to\/your_private.key SSLCertificateChainFile \/path\/to\/CertificateAuthority.crt<\/span><\/pre>\n<p><span style=\"font-family: Helvetica, sans-serif; color: #000000;\">Make your file names match your certificate files, such as;<\/span><\/p>\n<ul>\n<li><span style=\"font-family: Helvetica, sans-serif; color: #000000;\">SSLCertificateFile is your certificate file (eg. example_your_domain.crt).<\/span><\/li>\n<li><span style=\"font-family: Helvetica, sans-serif; color: #000000;\">SSLCertificateKeyFile is the key file that you generated while creation of the CSR.<\/span><\/li>\n<li><span style=\"font-family: Helvetica, sans-serif; color: #000000;\">SSLCertificateChainFile is the Certificate Authority intermediate certificate file (Symantec.crt)<\/span><\/li>\n<\/ul>\n<p><span style=\"font-family: Helvetica, sans-serif; color: #000000;\">Step 5: That\u2019s it! Restart Apache Now!<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article provides you with information on how to install SSL certificates on your VPS server running Ubuntu OS. \u00a0 The following steps are based on the Ubuntu server with Apache2. \u00a0 Step 1 &#8211; Copy\/paste your SSL certificate files to the server \u00a0 Download your Intermediate Certificate (CertificateAuthority.cert) and&#8230;<\/p>\n","protected":false},"author":21,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"ht-kb-category":[21],"ht-kb-tag":[179,470,480,524,691,898,950,1056,1161],"class_list":["post-24263","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-ssl-certificates","ht_kb_tag-certificate","ht_kb_tag-hosting","ht_kb_tag-how-to","ht_kb_tag-install","ht_kb_tag-on","ht_kb_tag-server","ht_kb_tag-ssl","ht_kb_tag-ubuntu","ht_kb_tag-your"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>VPS: How to install your SSL certificate on your Ubuntu Server -<\/title>\n<meta name=\"description\" content=\"This article provides you with information on how to install SSL certificates on your VPS server running Ubuntu OS 1-grid Knowledge Base\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/1grid.co.za\/knowledge\/vps-how-to-install-your-ssl-certificate-on-your-ubuntu-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"VPS: How to install your SSL certificate on your Ubuntu Server -\" \/>\n<meta property=\"og:description\" content=\"This article provides you with information on how to install SSL certificates on your VPS server running Ubuntu OS 1-grid Knowledge Base\" \/>\n<meta property=\"og:url\" content=\"https:\/\/1grid.co.za\/knowledge\/vps-how-to-install-your-ssl-certificate-on-your-ubuntu-server\/\" \/>\n<meta property=\"og:site_name\" content=\"1-grid Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/1grid.co.za\/\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-27T09:59:32+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@1grid_hosting\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/vps-how-to-install-your-ssl-certificate-on-your-ubuntu-server\/\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/vps-how-to-install-your-ssl-certificate-on-your-ubuntu-server\/\",\"name\":\"VPS: How to install your SSL certificate on your Ubuntu Server -\",\"isPartOf\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#website\"},\"datePublished\":\"2022-02-02T14:27:24+00:00\",\"dateModified\":\"2025-05-27T09:59:32+00:00\",\"description\":\"This article provides you with information on how to install SSL certificates on your VPS server running Ubuntu OS 1-grid Knowledge Base\",\"breadcrumb\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/vps-how-to-install-your-ssl-certificate-on-your-ubuntu-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/1grid.co.za\/knowledge\/vps-how-to-install-your-ssl-certificate-on-your-ubuntu-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/vps-how-to-install-your-ssl-certificate-on-your-ubuntu-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/1grid.co.za\/knowledge\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"VPS: How to install your SSL certificate on your Ubuntu Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#website\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/\",\"name\":\"1-Grid Domain Hosting Knowledge Base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/1grid.co.za\/knowledge\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#organization\",\"name\":\"1-Grid Domain Hosting Knowledge Base\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg\",\"contentUrl\":\"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg\",\"width\":100,\"height\":100,\"caption\":\"1-Grid Domain Hosting Knowledge Base\"},\"image\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/1grid.co.za\/\",\"https:\/\/twitter.com\/1grid_hosting\",\"https:\/\/www.instagram.com\/1grid_hosting\/\",\"https:\/\/za.linkedin.com\/company\/1-grid\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"VPS: How to install your SSL certificate on your Ubuntu Server -","description":"This article provides you with information on how to install SSL certificates on your VPS server running Ubuntu OS 1-grid Knowledge Base","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:\/\/1grid.co.za\/knowledge\/vps-how-to-install-your-ssl-certificate-on-your-ubuntu-server\/","og_locale":"en_US","og_type":"article","og_title":"VPS: How to install your SSL certificate on your Ubuntu Server -","og_description":"This article provides you with information on how to install SSL certificates on your VPS server running Ubuntu OS 1-grid Knowledge Base","og_url":"https:\/\/1grid.co.za\/knowledge\/vps-how-to-install-your-ssl-certificate-on-your-ubuntu-server\/","og_site_name":"1-grid Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/1grid.co.za\/","article_modified_time":"2025-05-27T09:59:32+00:00","twitter_card":"summary_large_image","twitter_site":"@1grid_hosting","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/1grid.co.za\/knowledge\/vps-how-to-install-your-ssl-certificate-on-your-ubuntu-server\/","url":"https:\/\/1grid.co.za\/knowledge\/vps-how-to-install-your-ssl-certificate-on-your-ubuntu-server\/","name":"VPS: How to install your SSL certificate on your Ubuntu Server -","isPartOf":{"@id":"https:\/\/1grid.co.za\/knowledge\/#website"},"datePublished":"2022-02-02T14:27:24+00:00","dateModified":"2025-05-27T09:59:32+00:00","description":"This article provides you with information on how to install SSL certificates on your VPS server running Ubuntu OS 1-grid Knowledge Base","breadcrumb":{"@id":"https:\/\/1grid.co.za\/knowledge\/vps-how-to-install-your-ssl-certificate-on-your-ubuntu-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/1grid.co.za\/knowledge\/vps-how-to-install-your-ssl-certificate-on-your-ubuntu-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/1grid.co.za\/knowledge\/vps-how-to-install-your-ssl-certificate-on-your-ubuntu-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/1grid.co.za\/knowledge\/"},{"@type":"ListItem","position":2,"name":"VPS: How to install your SSL certificate on your Ubuntu Server"}]},{"@type":"WebSite","@id":"https:\/\/1grid.co.za\/knowledge\/#website","url":"https:\/\/1grid.co.za\/knowledge\/","name":"1-Grid Domain Hosting Knowledge Base","description":"","publisher":{"@id":"https:\/\/1grid.co.za\/knowledge\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/1grid.co.za\/knowledge\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/1grid.co.za\/knowledge\/#organization","name":"1-Grid Domain Hosting Knowledge Base","url":"https:\/\/1grid.co.za\/knowledge\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/","url":"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg","contentUrl":"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg","width":100,"height":100,"caption":"1-Grid Domain Hosting Knowledge Base"},"image":{"@id":"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/1grid.co.za\/","https:\/\/twitter.com\/1grid_hosting","https:\/\/www.instagram.com\/1grid_hosting\/","https:\/\/za.linkedin.com\/company\/1-grid"]}]}},"_links":{"self":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/24263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/comments?post=24263"}],"version-history":[{"count":3,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/24263\/revisions"}],"predecessor-version":[{"id":33278,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/24263\/revisions\/33278"}],"wp:attachment":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/media?parent=24263"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb-category?post=24263"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb-tag?post=24263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}