{"id":2628,"date":"2019-06-23T08:55:48","date_gmt":"2019-06-23T03:25:48","guid":{"rendered":"https:\/\/www.24x7serversupport.com\/blog\/?p=2628"},"modified":"2019-06-23T08:55:50","modified_gmt":"2019-06-23T03:25:50","slug":"how-to-install-lets-encrypt-on-centos-7-with-nginx","status":"publish","type":"post","link":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lets-encrypt-on-centos-7-with-nginx\/","title":{"rendered":"How to install Let\u2019s Encrypt on CentOS 7 with Nginx"},"content":{"rendered":"\n<p>We have seen <a href=\"https:\/\/www.24x7serversupport.com\/blog\/index.php\/how-to-install-lets-encrypt-on-centos-7-with-apache\/\">How to install Let\u2019s Encrypt on CentOS 7 with Apache<\/a> . Now we will see How to install Let\u2019s Encrypt on CentOS 7 with Nginx.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># yum install epel-release \n# yum update -y<\/pre>\n\n\n\n<p>You will also need to have nginx installed and running. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Install Let\u2019s Encrypt Client<\/h4>\n\n\n\n<pre class=\"wp-block-preformatted\"># yum install certbot python2-certbot-nginx<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Obtaining a Certificate<\/h4>\n\n\n\n<pre class=\"wp-block-preformatted\"># certbot --nginx -d testdomain.com <\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Configuring automatic certificate renewal<\/h4>\n\n\n\n<p>Let\u2019s encrypt \ncertificates are valid for 90 days. It is recommended to renew it within\n 60 days, in order to avoid any problems. To achieve this, certbot will \nassist us with your renewal command. It will verify that the certificate\n is less than 30 days from expiration:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># certbot renew<\/pre>\n\n\n\n<p>If the installed certificate is recent, certbot will only verify its expiration date:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Processing  \/etc\/letsencrypt\/renewal\/testdomain.com.conf\nThe following certs are not due for renewal yet:\n    \/etc\/letsencrypt\/live\/testdomain.com\/fullchain.pem (skipped)\nNo renewals were attempted.<\/pre>\n\n\n\n<p>To automate this renewal process, you can set up a cronjob :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># crontab -e<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">* *\/12 * * * \/usr\/bin\/certbot renew &gt;\/dev\/null 2&gt;&amp;1<\/pre>\n\n\n\n<p>Now you should have successfully installed and configured Let\u2019s Encrypt with Apache.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have seen How to install Let\u2019s Encrypt on CentOS 7 with Apache . Now we will see How to install Let\u2019s Encrypt on CentOS 7 with Nginx. # yum install epel-release # yum update -y You will also need to have nginx installed and running. Install Let\u2019s Encrypt Client # yum install certbot python2-certbot-nginx [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[30,34],"tags":[74,168,144],"class_list":["post-2628","post","type-post","status-publish","format-standard","hentry","category-centos","category-linux","tag-centos7","tag-lets-encrypt","tag-nginx"],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to install Let\u2019s Encrypt on CentOS 7 with Nginx | 24x7serversupport Blog<\/title>\n<meta name=\"description\" content=\"How to install Let\u2019s Encrypt on CentOS 7 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.24x7serversupport.com\/blog\/how-to-install-lets-encrypt-on-centos-7-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 on CentOS 7 with Nginx | 24x7serversupport Blog\" \/>\n<meta property=\"og:description\" content=\"How to install Let\u2019s Encrypt on CentOS 7 with Nginx\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lets-encrypt-on-centos-7-with-nginx\/\" \/>\n<meta property=\"og:site_name\" content=\"24x7serversupport Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-23T03:25:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-06-23T03:25:50+00:00\" \/>\n<meta name=\"author\" content=\"24x7support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:site\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"24x7support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lets-encrypt-on-centos-7-with-nginx\/\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lets-encrypt-on-centos-7-with-nginx\/\",\"name\":\"How to install Let\u2019s Encrypt on CentOS 7 with Nginx | 24x7serversupport Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\"},\"datePublished\":\"2019-06-23T03:25:48+00:00\",\"dateModified\":\"2019-06-23T03:25:50+00:00\",\"author\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\"},\"description\":\"How to install Let\u2019s Encrypt on CentOS 7 with Nginx\",\"breadcrumb\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lets-encrypt-on-centos-7-with-nginx\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lets-encrypt-on-centos-7-with-nginx\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lets-encrypt-on-centos-7-with-nginx\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.24x7serversupport.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install Let\u2019s Encrypt on CentOS 7 with Nginx\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/\",\"name\":\"24x7serversupport Blog\",\"description\":\"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\",\"name\":\"24x7support\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install Let\u2019s Encrypt on CentOS 7 with Nginx | 24x7serversupport Blog","description":"How to install Let\u2019s Encrypt on CentOS 7 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.24x7serversupport.com\/blog\/how-to-install-lets-encrypt-on-centos-7-with-nginx\/","og_locale":"en_US","og_type":"article","og_title":"How to install Let\u2019s Encrypt on CentOS 7 with Nginx | 24x7serversupport Blog","og_description":"How to install Let\u2019s Encrypt on CentOS 7 with Nginx","og_url":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lets-encrypt-on-centos-7-with-nginx\/","og_site_name":"24x7serversupport Blog","article_published_time":"2019-06-23T03:25:48+00:00","article_modified_time":"2019-06-23T03:25:50+00:00","author":"24x7support","twitter_card":"summary_large_image","twitter_creator":"@24x7serversuppo","twitter_site":"@24x7serversuppo","twitter_misc":{"Written by":"24x7support","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lets-encrypt-on-centos-7-with-nginx\/","url":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lets-encrypt-on-centos-7-with-nginx\/","name":"How to install Let\u2019s Encrypt on CentOS 7 with Nginx | 24x7serversupport Blog","isPartOf":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#website"},"datePublished":"2019-06-23T03:25:48+00:00","dateModified":"2019-06-23T03:25:50+00:00","author":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401"},"description":"How to install Let\u2019s Encrypt on CentOS 7 with Nginx","breadcrumb":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lets-encrypt-on-centos-7-with-nginx\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lets-encrypt-on-centos-7-with-nginx\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-lets-encrypt-on-centos-7-with-nginx\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.24x7serversupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to install Let\u2019s Encrypt on CentOS 7 with Nginx"}]},{"@type":"WebSite","@id":"https:\/\/www.24x7serversupport.com\/blog\/#website","url":"https:\/\/www.24x7serversupport.com\/blog\/","name":"24x7serversupport Blog","description":"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401","name":"24x7support","url":"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/2628","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/comments?post=2628"}],"version-history":[{"count":1,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/2628\/revisions"}],"predecessor-version":[{"id":2630,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/2628\/revisions\/2630"}],"wp:attachment":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/media?parent=2628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/categories?post=2628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/tags?post=2628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}