{"id":31544,"date":"2020-02-19T13:52:36","date_gmt":"2020-02-19T19:52:36","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=31544"},"modified":"2022-06-03T03:33:09","modified_gmt":"2022-06-03T08:33:09","slug":"how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/","title":{"rendered":"How to Install Let\u2019s Encrypt SSL on Ubuntu 18.04 with Nginx"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-32403\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-lets-encrypt-on-ubuntu18.04-with-nginx.jpg\" alt=\"\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-lets-encrypt-on-ubuntu18.04-with-nginx.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-lets-encrypt-on-ubuntu18.04-with-nginx-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-lets-encrypt-on-ubuntu18.04-with-nginx-150x75.jpg 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>In this tutorial, we will guide you through the steps of installing Let&#8217;s Encrypt SSL certificate on an <a href=\"https:\/\/rosehosting.com\/ubuntu-hosting.html\">Ubuntu 18.04 VPS<\/a> and configure it with Nginx web server.<\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-32404\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/setup-lets-encrypt-certificate-website-security-on-ubuntu18.04-vps.jpg\" alt=\"\" width=\"120\" height=\"120\" \/>Let&#8217;s Encrypt is a free and automated certificate authority organization. They aim to bring secure websites to all users across the web. They make installations easy and simple, and you can even set up auto-renewal so that you never have to worry about your certificate expiring. Let&#8217;s get started with the installation.<\/p>\n<p><!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69ef6865d5b6a\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69ef6865d5b6a\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/#Prerequisites\" >Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/#Step-1-Log-in-and-Update-the-Server\" >Step 1: Log in and Update the Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/#Step-2-Install-the-Nginx-Web-Server\" >Step 2: Install the Nginx Web Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/#Step-3-Install-Certbot\" >Step 3: Install Certbot<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/#Step-4-Install-a-Lets-Encrypt-SSL-certificate\" >Step 4: Install a Let&#8217;s Encrypt SSL certificate<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/#Step-5-Test-automatic-renewal\" >Step 5: Test automatic renewal<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span><strong>Prerequisites<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>\u00a0Server with Ubuntu 18.04 OS. This should work with other Linux distributions as well, but this tutorial specifically talks about Ubuntu 18.04.<\/li>\n<li>\u00a0System user with sudo privileges, or the root account<\/li>\n<li>\u00a0Domain or subdomain which is pointed to your server. For the purposes of this tutorial, we will use <code>domain.com<\/code> as an example.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Step-1-Log-in-and-Update-the-Server\"><\/span><strong>Step 1: Log in and Update the Server<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>First of all, login to your Ubuntu 18.04 server through SSH as user root, or any other user with sudo privileges<\/p>\n<pre>ssh root@<span style=\"color: #ff0000;\">IP_Address<\/span> -p <span style=\"color: #ff0000;\">Port_Number<\/span><\/pre>\n<p>Where \u2018<span style=\"color: #ff0000;\">IP_Address<\/span>\u2019 and \u2018<span style=\"color: #ff0000;\">Port_Number<\/span>\u2019 are the actual IP address of your server and the SSH port number.<\/p>\n<p>Once you are logged in, run the following commands to make sure that all installed packages on your server are updated to the latest available version<\/p>\n<pre>apt update &amp;&amp; apt upgrade<\/pre>\n<p>You can also <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-enable-automatic-updates-on-a-linux-vps\/\">enable automatic updates on your server<\/a> as described in one of our previous blog posts, which is highly recommended. This way, the system will automatically check for updates.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-2-Install-the-Nginx-Web-Server\"><\/span><strong>Step 2: Install the Nginx Web Server<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In this tutorial, we will install and use Nginx web server. It is a free, open-source, and high-performance web server known for its great performance, stability, low resource usage, extensive feature set, and simple configuration. Nginx is available in the official Ubuntu 18.04 repositories and the installation is pretty easy. Run the following command to install it on your server<\/p>\n<pre>apt -y install nginx<\/pre>\n<p>Once the Nginx web server is installed, it should be automatically started. You can check its status with the following command<\/p>\n<pre>systemctl status nginx<\/pre>\n<p>Output:<\/p>\n<pre>\u00e2 nginx.service - A high performance web server and a reverse proxy server\r\n   Loaded: loaded (\/lib\/systemd\/system\/nginx.service; enabled; vendor preset: enabled)\r\n   Active: active (running) since Wed 2019-07-24 02:40:17 CDT; 1min 8s ago\r\n     Docs: man:nginx(8)\r\n  Process: 28420 ExecStart=\/usr\/sbin\/nginx -g daemon on; master_process on; (code=exited, status=0\/SUCCESS)\r\n  Process: 28419 ExecStartPre=\/usr\/sbin\/nginx -t -q -g daemon on; master_process on; (code=exited, status=0\/SUCCESS)\r\n Main PID: 28421 (nginx)\r\n    Tasks: 3 (limit: 2321)\r\n   CGroup: \/system.slice\/nginx.service\r\n           \u00e2\u00e228421 nginx: master process \/usr\/sbin\/nginx -g daemon on; master_process on;\r\n           \u00e2\u00e228422 nginx: worker process\r\n           \u00e2\u00e228423 nginx: worker process\r\n\r\nJul 24 02:40:17 hostname systemd[1]: Starting A high performance web server and a reverse proxy server...\r\nJul 24 02:40:17 hostname systemd[1]: Started A high performance web server and a reverse proxy server.\r\n<\/pre>\n<p>Enable Nginx to automatically start after a server reboot<\/p>\n<pre>systemctl enable nginx<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-3-Install-Certbot\"><\/span><strong>Step 3: Install Certbot<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Certbot is a free and open-source tool written in Python which helps to obtain the SSL certificate from Let&#8217;s Encrypt and configure it onto your web server. The version of Cerbot that can be installed from the official Ubuntu repositories is outdated, so in order to install the latest version maintained by the Certbot team, we will have to add the Certbot PPA to your list of repositories.<\/p>\n<p>To do that, run to following commands on your server<\/p>\n<pre>apt install  software-properties-common\r\nadd-apt-repository universe\r\nadd-apt-repository ppa:certbot\/certbot<\/pre>\n<p>During the process of adding the repository, you will be prompted to hit the Enter button to accept it. After that update the repositories list<\/p>\n<pre>apt update<\/pre>\n<p>Once the repository is added and the repositories list updated, go ahead and install the Certbot Nginx package<\/p>\n<pre>apt -y install python-certbot-nginx<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-4-Install-a-Lets-Encrypt-SSL-certificate\"><\/span><strong>Step 4: Install a Let&#8217;s Encrypt SSL certificate<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>As we mentioned in the &#8216;Prerequisites&#8217; section of the tutorial, we will use <code>domain.com<\/code> as an example domain. So, in order to obtain Let&#8217;s Encrypt SSL certificate for this domain name, we will run Certbot with the &#8211;nginx plugin which will edit the Nginx configuration for the specific domain.<\/p>\n<pre>certbot --nginx -d <span style=\"color: #ff0000;\">domain.com<\/span> -d www.<span style=\"color: #ff0000;\">domain.com<\/span><\/pre>\n<p>During the installation of the Let&#8217;s Encrypt SSL certificate, you will be prompted to enter an email address used for urgent renewal and security notices<\/p>\n<pre>Enter email address (used for urgent renewal and security notices) (Enter 'c' to\r\ncancel): admin@<span style=\"color: #ff0000;\">domain.com<\/span><\/pre>\n<p>Read and accept Let&#8217;s Encrypt&#8217;s Terms of Service<\/p>\n<pre>Please read the Terms of Service at\r\nhttps:\/\/letsencrypt.org\/documents\/LE-SA-v1.2-November-15-2017.pdf. You must\r\nagree in order to register with the ACME server at\r\nhttps:\/\/acme-v01.api.letsencrypt.org\/directory\r\n-------------------------------------------------------------------------------\r\n(A)gree\/(C)ancel: A\r\n<\/pre>\n<p>Choose whether or not you want to redirect all traffic to HTTPS, which is recommended.<\/p>\n<pre>Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.\r\n-------------------------------------------------------------------------------\r\n1: No redirect - Make no further changes to the webserver configuration.\r\n2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for\r\nnew sites, or if you're confident your site works on HTTPS. You can undo this\r\nchange by editing your web server's configuration.\r\n-------------------------------------------------------------------------------\r\nSelect the appropriate number [1-2] then [enter] (press 'c' to cancel): 2\r\n\r\nRedirecting all traffic on port 80 to ssl in \/etc\/nginx\/sites-enabled\/default\r\n-------------------------------------------------------------------------------\r\n<\/pre>\n<p>With this step, the SSL certificate for <code>domain.com<\/code> is successfully installed and you can access your domain name at <code>https:\/\/domain.com<\/code>. You can use Certbot to verify this and check the certificate expiration date<\/p>\n<pre>certbot certificates<\/pre>\n<p>Output:<\/p>\n<pre>Saving debug log to \/var\/log\/letsencrypt\/letsencrypt.log\r\n-------------------------------------------------------------------------------\r\nFound the following certs:\r\n  Certificate Name: domain.com\r\n    Domains: domain.com\r\n    Expiry Date: 2019-10-22 08:56:19+00:00 (VALID: 89 days)\r\n    Certificate Path: \/etc\/letsencrypt\/live\/domain.com\/fullchain.pem\r\n    Private Key Path: \/etc\/letsencrypt\/live\/domain.com\/privkey.pem\r\n-------------------------------------------------------------------------------<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-5-Test-automatic-renewal\"><\/span><strong>Step 5: Test automatic renewal<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The certbot package we installed in this tutorial comes with a systemd timer that will check the SSL certificate and automatically renew it before it expires. You can check if the timer is running as shown below<\/p>\n<pre>systemctl list-timers |grep certbot\r\nWed 2019-07-24 15:38:39 CDT  9h left       n\/a                          n\/a          certbot.timer                certbot.service<\/pre>\n<p>To test if the automatic renewal works properly, issue the following command<\/p>\n<pre>certbot renew --dry-run<\/pre>\n<p>If it works, then that&#8217;s it! You have successfully set up a Let&#8217;s Encrypt certificate on your Ubuntu 18.04 VPS, as well as set up auto-renewal.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-32405\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/secure-your-website-with-lets-encrypt-by-expert-admins-managed-vps.jpg\" alt=\"\" width=\"120\" height=\"120\" \/>Of course, if you are one of our <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting\/\">Managed Ubuntu Hosting<\/a> customers, you don\u2019t have to install Let\u2019s Encrypt on Ubuntu 18.04 with Nginx \u2013 simply ask our admins, sit back, and relax. Our admins will install Let\u2019s Encrypt on Ubuntu 18.04 with Nginx for you immediately.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS.<\/strong><\/span> If you liked this post on <strong>how to install Let\u2019s Encrypt on Ubuntu 18.04 with Nginx<\/strong>, please share it with your friends on the social networks using the share buttons below, or simply leave a comment in the comments section. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will guide you through the steps of installing Let&#8217;s Encrypt SSL certificate on an Ubuntu 18.04 &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Let\u2019s Encrypt SSL on Ubuntu 18.04 with Nginx\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/#more-31544\" aria-label=\"Read more about How to Install Let\u2019s Encrypt SSL on Ubuntu 18.04 with Nginx\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":32403,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1703,13,1698],"tags":[1653,49,59],"class_list":["post-31544","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security","category-tutorials","category-ubuntu","tag-certbot","tag-nginx","tag-ubuntu","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Let\u2019s Encrypt SSL on Ubuntu 18.04 with Nginx<\/title>\n<meta name=\"description\" content=\"In this tutorial, you will learn how to install Let&#039;s Encrypt SSL certificate on an Ubuntu 18.04 with Nginx.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Let\u2019s Encrypt SSL on Ubuntu 18.04 with Nginx\" \/>\n<meta property=\"og:description\" content=\"How to Install Let\u2019s Encrypt SSL on Ubuntu 18.04 with Nginx | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-19T19:52:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:33:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-lets-encrypt-on-ubuntu18.04-with-nginx.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Let\u2019s Encrypt SSL on Ubuntu 18.04 with Nginx\",\"datePublished\":\"2020-02-19T19:52:36+00:00\",\"dateModified\":\"2022-06-03T08:33:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\\\/\"},\"wordCount\":777,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/how-to-install-lets-encrypt-on-ubuntu18.04-with-nginx.jpg\",\"keywords\":[\"certbot\",\"nginx\",\"ubuntu\"],\"articleSection\":[\"Security\",\"Tutorials\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\\\/\",\"name\":\"How to Install Let\u2019s Encrypt SSL on Ubuntu 18.04 with Nginx\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/how-to-install-lets-encrypt-on-ubuntu18.04-with-nginx.jpg\",\"datePublished\":\"2020-02-19T19:52:36+00:00\",\"dateModified\":\"2022-06-03T08:33:09+00:00\",\"description\":\"In this tutorial, you will learn how to install Let's Encrypt SSL certificate on an Ubuntu 18.04 with Nginx.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/how-to-install-lets-encrypt-on-ubuntu18.04-with-nginx.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/how-to-install-lets-encrypt-on-ubuntu18.04-with-nginx.jpg\",\"width\":742,\"height\":372},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Let\u2019s Encrypt SSL on Ubuntu 18.04 with Nginx\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install Let\u2019s Encrypt SSL on Ubuntu 18.04 with Nginx","description":"In this tutorial, you will learn how to install Let's Encrypt SSL certificate on an Ubuntu 18.04 with Nginx.","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:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Let\u2019s Encrypt SSL on Ubuntu 18.04 with Nginx","og_description":"How to Install Let\u2019s Encrypt SSL on Ubuntu 18.04 with Nginx | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2020-02-19T19:52:36+00:00","article_modified_time":"2022-06-03T08:33:09+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-lets-encrypt-on-ubuntu18.04-with-nginx.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Let\u2019s Encrypt SSL on Ubuntu 18.04 with Nginx","datePublished":"2020-02-19T19:52:36+00:00","dateModified":"2022-06-03T08:33:09+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/"},"wordCount":777,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-lets-encrypt-on-ubuntu18.04-with-nginx.jpg","keywords":["certbot","nginx","ubuntu"],"articleSection":["Security","Tutorials","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/","name":"How to Install Let\u2019s Encrypt SSL on Ubuntu 18.04 with Nginx","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-lets-encrypt-on-ubuntu18.04-with-nginx.jpg","datePublished":"2020-02-19T19:52:36+00:00","dateModified":"2022-06-03T08:33:09+00:00","description":"In this tutorial, you will learn how to install Let's Encrypt SSL certificate on an Ubuntu 18.04 with Nginx.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-lets-encrypt-on-ubuntu18.04-with-nginx.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-lets-encrypt-on-ubuntu18.04-with-nginx.jpg","width":742,"height":372},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lets-encrypt-ssl-on-ubuntu-18-04-with-nginx\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Let\u2019s Encrypt SSL on Ubuntu 18.04 with Nginx"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/31544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=31544"}],"version-history":[{"count":4,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/31544\/revisions"}],"predecessor-version":[{"id":40901,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/31544\/revisions\/40901"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/32403"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=31544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=31544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=31544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}