{"id":4249,"date":"2020-03-12T17:07:32","date_gmt":"2020-03-12T17:07:32","guid":{"rendered":"https:\/\/lamp.ciscoar.com\/?page_id=4249"},"modified":"2020-03-15T01:56:23","modified_gmt":"2020-03-15T01:56:23","slug":"certbot-in-action","status":"publish","type":"page","link":"https:\/\/lamp.ciscoar.com\/?page_id=4249","title":{"rendered":"Certbot in action"},"content":{"rendered":"\n\n\n<h2 class=\"wp-block-heading\">Certbot second part<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The <a href=\"\/getting-ssl-certificates-with-certbot\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"first part (opens in a new tab)\">first part<\/a> of this demonstration was done on a LAB environment, but the second part has to be done on a live website, because Certbot will check the status of your domain and subdomains.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Certbot log &#8211; selecting subdomains<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In this particular case I&#8217;m enabling one subdomain called &#8220;<strong>cue.ciscoar.com<\/strong>&#8221; and its correspondent &#8220;www&#8221; alias, on my list they are number 2 and 3.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_01.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"850\" height=\"580\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_01.jpg\" alt=\"\" class=\"wp-image-4298\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_01.jpg 850w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_01-300x205.jpg 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_01-768x524.jpg 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><figcaption> <em>certbot &#8211; selecting subdomians<\/em><\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Enabling redirection of HTTP to HTTPS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Immediately after the selection of the subdomains for which you want to get the Let&#8217;s encrypt SSL free certificates, you&#8217;ll have to choose from redirecting HTTP traffic to HTTPS, most of the times you want to activate redirection, see image below, option 2.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_02.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"176\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_02-1024x176.jpg\" alt=\"\" class=\"wp-image-4301\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_02-1024x176.jpg 1024w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_02-300x52.jpg 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_02-768x132.jpg 768w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_02.jpg 1251w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><figcaption>certbot redirecting HTTP to HTTPs<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Certbot test your configuration<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">And that&#8217;s it! it was a really quick one, what you can do now is to test your configuration, using <strong>www.ssllabs.com<\/strong> see image below:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_03.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"781\" height=\"144\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_03.jpg\" alt=\"\" class=\"wp-image-4304\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_03.jpg 781w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_03-300x55.jpg 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_03-768x142.jpg 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><figcaption>certbot &#8211; test links<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_05b.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"606\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_05b-1024x606.jpg\" alt=\"\" class=\"wp-image-4316\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_05b-1024x606.jpg 1024w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_05b-300x178.jpg 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_05b-768x455.jpg 768w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_05b.jpg 1245w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><figcaption>certbot &#8211; test completed<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Final notes<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Congratutations, job well done!<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_04.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"762\" height=\"300\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_04.jpg\" alt=\"\" class=\"wp-image-4308\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_04.jpg 762w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/03\/certbot_in_action_04-300x118.jpg 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/a><figcaption>certbot &#8211; renewal<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">As you can see in the final notes, the certificates have an expiration date, but don&#8217;t worry we can use &#8220;<strong>crontab<\/strong>&#8221; to set an automatic renewal of the certificates, that will be covered on further article, stay tuned.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Certbot second part The first part of this demonstration was done on a LAB environment, but the second part has to be done on a live website, because Certbot will check the status of your domain and subdomains. Certbot log &#8211; selecting subdomains In this particular case I&#8217;m enabling one subdomain called &#8220;cue.ciscoar.com&#8221; and its &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/lamp.ciscoar.com\/?page_id=4249\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Certbot in action&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-4249","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/4249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4249"}],"version-history":[{"count":20,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/4249\/revisions"}],"predecessor-version":[{"id":4319,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/4249\/revisions\/4319"}],"wp:attachment":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}