{"id":617,"date":"2022-05-10T08:40:14","date_gmt":"2022-05-10T08:40:14","guid":{"rendered":"https:\/\/abdelrhmangamal.com\/?p=617"},"modified":"2022-05-10T08:40:16","modified_gmt":"2022-05-10T08:40:16","slug":"certbot-wildcard-certificates-using-lets-encrypt","status":"publish","type":"post","link":"https:\/\/abdelrhmangamal.com\/?p=617","title":{"rendered":"Certbot Wildcard Certificates using Let\u2019s Encrypt"},"content":{"rendered":"\n<p>Let\u2019s Encrypt is a free, automated, and open certificate authority (CA), run for the public\u2019s benefit. It is a service provided by the\u00a0<a href=\"https:\/\/www.abetterinternet.org\/\">Internet Security Research Group (ISRG)<\/a>.<\/p>\n\n\n\n<p><strong>Let\u2019s Encrypt<\/strong> gives people the digital certificates they need in order to enable HTTPS (SSL\/TLS) for websites, for free, in the most user-friendly way we can. We do this because we want to create a more secure and privacy-respecting Web.<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/abdelrhmangamal.com\/wp-content\/uploads\/2022\/05\/wildcard.png\" alt=\"\" class=\"wp-image-619\" width=\"560\" height=\"303\" srcset=\"https:\/\/abdelrhmangamal.com\/wp-content\/uploads\/2022\/05\/wildcard.png 392w, https:\/\/abdelrhmangamal.com\/wp-content\/uploads\/2022\/05\/wildcard-300x162.png 300w, https:\/\/abdelrhmangamal.com\/wp-content\/uploads\/2022\/05\/wildcard-256x138.png 256w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><figcaption>Wild card<\/figcaption><\/figure>\n\n\n\n<p><strong>Wild Card<\/strong>: Wildcard SSL certificates allow you to secure the main domain and an unlimited number of sub-domains under the main domain. For example, <a href=\"https:\/\/abdelrhmangamal.com\/\">test.abdelrhmangamal.com , <\/a> <a href=\"https:\/\/abdelrhmangamal.com\/\">example.abdelrhmangamal.com<\/a> etc.<br>Wildcard SSL certificates offer full encryption for the subdomains, making them an affordable and effective solution for most websites.<\/p>\n\n\n\n<p>This brief tutorial shows how to generate free wildcard SSL\/TLS certificates using Let\u2019s Encrypt (Certbot) on Ubuntu 16.04 | 18.04 LTS<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Install Let\u2019s Encrypt Certbot<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt install letsencrypt<\/code><\/pre>\n\n\n\n<p>Other installation method <a href=\"https:\/\/certbot.eff.org\/instructions\" title=\"Here\">Here<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Generate Let\u2019s Encrypt Wildcard SSL Certificate.<\/h2>\n\n\n\n<p>Before going with this step make sure you already have your domain with the proper IP address pointed to it. then execute the below command.<\/p>\n\n\n\n<p>However, for wildcard certificates, the only challenge method Let\u2019s Encrypt accepts is the DNS challenge, which we can invoke via the\u00a0<strong>preferred-challenges=dns<\/strong>\u00a0flag.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo certbot certonly --manual --preferred-challenges=dns --email admin@example.com --server https:\/\/acme-v02.api.letsencrypt.org\/directory --agree-tos -d example.com -d *.example.com<\/code><\/pre>\n\n\n\n<p>The command options above are explained below:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>&#8211;certonly: Obtain or renew a certificate, but do not install<\/li><li>&#8211;manual: Obtain certificates interactively<\/li><li>&#8211;preferred-challenges=dns: Use dns to authenticate domain ownership<\/li><li>&#8211;server: Specify the endpoint to use to generate<\/li><li>&#8211;agree-tos: Agree to the ACME server\u2019s subscriber terms<\/li><li>-d: Domain name to provide certificates for<\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Go<\/strong> to your DNS provider and add a text record for the string above and save.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let\u2019s Encrypt is a free, automated, and open certificate authority (CA), run for the public\u2019s benefit. It is a service&#8230; <\/p>\n<div class=\"art-el-more\"><a href=\"https:\/\/abdelrhmangamal.com\/?p=617\" class=\"art-link art-color-link art-w-chevron\">Read more<\/a><\/div>\n","protected":false},"author":1,"featured_media":618,"comment_status":"open","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[19],"tags":[],"class_list":["post-617","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.11 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Certbot Wildcard Certificates using Let\u2019s Encrypt - Abdelrhman Gamal<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Certbot Wildcard Certificates using Let\u2019s Encrypt - Abdelrhman Gamal\" \/>\n<meta property=\"og:description\" content=\"Let\u2019s Encrypt is a free, automated, and open certificate authority (CA), run for the public\u2019s benefit. It is a service... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/abdelrhmangamal.com\/?p=617\" \/>\n<meta property=\"og:site_name\" content=\"Abdelrhman Gamal\" \/>\n<meta property=\"article:published_time\" content=\"2022-05-10T08:40:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-05-10T08:40:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/abdelrhmangamal.com\/wp-content\/uploads\/2022\/05\/download.png\" \/>\n\t<meta property=\"og:image:width\" content=\"286\" \/>\n\t<meta property=\"og:image:height\" content=\"176\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/abdelrhmangamal.com\/?p=617\",\"url\":\"https:\/\/abdelrhmangamal.com\/?p=617\",\"name\":\"Certbot Wildcard Certificates using Let\u2019s Encrypt - Abdelrhman Gamal\",\"isPartOf\":{\"@id\":\"https:\/\/abdelrhmangamal.com\/#website\"},\"datePublished\":\"2022-05-10T08:40:14+00:00\",\"dateModified\":\"2022-05-10T08:40:16+00:00\",\"author\":{\"@id\":\"https:\/\/abdelrhmangamal.com\/#\/schema\/person\/37df82e7a8c0027f621c916f9044f978\"},\"breadcrumb\":{\"@id\":\"https:\/\/abdelrhmangamal.com\/?p=617#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/abdelrhmangamal.com\/?p=617\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/abdelrhmangamal.com\/?p=617#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/abdelrhmangamal.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Certbot Wildcard Certificates using Let\u2019s Encrypt\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/abdelrhmangamal.com\/#website\",\"url\":\"https:\/\/abdelrhmangamal.com\/\",\"name\":\"Abdelrhman Gamal\",\"description\":\"Software Engineer\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/abdelrhmangamal.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/abdelrhmangamal.com\/#\/schema\/person\/37df82e7a8c0027f621c916f9044f978\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/abdelrhmangamal.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6368eb07883bf34cac0667420f263bcd8168e9cddf28fe0a276ff04700127482?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6368eb07883bf34cac0667420f263bcd8168e9cddf28fe0a276ff04700127482?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/abdelrhmangamal.com\"],\"url\":\"https:\/\/abdelrhmangamal.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Certbot Wildcard Certificates using Let\u2019s Encrypt - Abdelrhman Gamal","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Certbot Wildcard Certificates using Let\u2019s Encrypt - Abdelrhman Gamal","og_description":"Let\u2019s Encrypt is a free, automated, and open certificate authority (CA), run for the public\u2019s benefit. It is a service... Read more","og_url":"https:\/\/abdelrhmangamal.com\/?p=617","og_site_name":"Abdelrhman Gamal","article_published_time":"2022-05-10T08:40:14+00:00","article_modified_time":"2022-05-10T08:40:16+00:00","og_image":[{"width":286,"height":176,"url":"https:\/\/abdelrhmangamal.com\/wp-content\/uploads\/2022\/05\/download.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/abdelrhmangamal.com\/?p=617","url":"https:\/\/abdelrhmangamal.com\/?p=617","name":"Certbot Wildcard Certificates using Let\u2019s Encrypt - Abdelrhman Gamal","isPartOf":{"@id":"https:\/\/abdelrhmangamal.com\/#website"},"datePublished":"2022-05-10T08:40:14+00:00","dateModified":"2022-05-10T08:40:16+00:00","author":{"@id":"https:\/\/abdelrhmangamal.com\/#\/schema\/person\/37df82e7a8c0027f621c916f9044f978"},"breadcrumb":{"@id":"https:\/\/abdelrhmangamal.com\/?p=617#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/abdelrhmangamal.com\/?p=617"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/abdelrhmangamal.com\/?p=617#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/abdelrhmangamal.com\/"},{"@type":"ListItem","position":2,"name":"Certbot Wildcard Certificates using Let\u2019s Encrypt"}]},{"@type":"WebSite","@id":"https:\/\/abdelrhmangamal.com\/#website","url":"https:\/\/abdelrhmangamal.com\/","name":"Abdelrhman Gamal","description":"Software Engineer","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/abdelrhmangamal.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/abdelrhmangamal.com\/#\/schema\/person\/37df82e7a8c0027f621c916f9044f978","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/abdelrhmangamal.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6368eb07883bf34cac0667420f263bcd8168e9cddf28fe0a276ff04700127482?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6368eb07883bf34cac0667420f263bcd8168e9cddf28fe0a276ff04700127482?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/abdelrhmangamal.com"],"url":"https:\/\/abdelrhmangamal.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/abdelrhmangamal.com\/index.php?rest_route=\/wp\/v2\/posts\/617","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/abdelrhmangamal.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/abdelrhmangamal.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/abdelrhmangamal.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/abdelrhmangamal.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=617"}],"version-history":[{"count":1,"href":"https:\/\/abdelrhmangamal.com\/index.php?rest_route=\/wp\/v2\/posts\/617\/revisions"}],"predecessor-version":[{"id":620,"href":"https:\/\/abdelrhmangamal.com\/index.php?rest_route=\/wp\/v2\/posts\/617\/revisions\/620"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/abdelrhmangamal.com\/index.php?rest_route=\/wp\/v2\/media\/618"}],"wp:attachment":[{"href":"https:\/\/abdelrhmangamal.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/abdelrhmangamal.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/abdelrhmangamal.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}