{"id":1800,"date":"2023-01-24T08:44:25","date_gmt":"2023-01-24T03:14:25","guid":{"rendered":"https:\/\/trysiteprice.com\/blog\/?p=1800"},"modified":"2023-01-24T08:44:25","modified_gmt":"2023-01-24T03:14:25","slug":"how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns","status":"publish","type":"post","link":"https:\/\/trysiteprice.com\/blog\/how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns\/","title":{"rendered":"How to issue Let\u2019s Encrypt wildcard certificate with acme.sh and Cloudflare DNS"},"content":{"rendered":"<p>You can use acme.sh and Cloudflare DNS to issue a Let&#8217;s Encrypt wildcard certificate. Here are the steps you can follow:<\/p>\n<ol>\n<li>Start by installing acme.sh by running the following command:<\/li>\n<\/ol>\n<div class=\"bg-black mb-4 rounded-md\">\n<div class=\"flex items-center relative text-gray-200 bg-gray-800 px-4 py-2 text-xs font-sans\"><\/div>\n<div class=\"p-4 overflow-y-auto\"><code class=\"!whitespace-pre-wrap hljs language-javascript\">curl <span class=\"hljs-attr\">https<\/span>:<span class=\"hljs-comment\">\/\/get.acme.sh | sh<\/span><br \/>\n<\/code><\/div>\n<\/div>\n<ol start=\"2\">\n<li>Next, you will need to generate an API key for Cloudflare. This can be done by visiting the &#8220;My Profile&#8221; page on the Cloudflare website, and then &#8220;API Tokens&#8221; tab. Create a new API token with <code>Edit zone DNS<\/code> permissions.<\/li>\n<li>Run the following command to issue the wildcard certificate<\/li>\n<\/ol>\n<div class=\"bg-black mb-4 rounded-md\">\n<div class=\"flex items-center relative text-gray-200 bg-gray-800 px-4 py-2 text-xs font-sans\"><\/div>\n<div class=\"p-4 overflow-y-auto\"><code class=\"!whitespace-pre-wrap hljs language-css\">acme<span class=\"hljs-selector-class\">.sh<\/span> <span class=\"hljs-attr\">--issue<\/span> <span class=\"hljs-attr\">--dns<\/span> dns_cf -d example<span class=\"hljs-selector-class\">.com<\/span> -d *<span class=\"hljs-selector-class\">.example<\/span><span class=\"hljs-selector-class\">.com<\/span><br \/>\n<\/code><\/div>\n<\/div>\n<p>Replace <code>example.com<\/code> with your domain name and <code>dns_cf<\/code> with your Cloudflare API key.<\/p>\n<ol start=\"4\">\n<li>The above command will create a wildcard certificate for <code>example.com<\/code> and <code>*.example.com<\/code><\/li>\n<li>You can also specify additional DNS providers with the <code>--dns<\/code> option.<\/li>\n<li>After the command is done, you will find the cert files in <code>~\/.acme.sh\/example.com<\/code> directory.<\/li>\n<li>You can install the cert files by running the following command:<\/li>\n<\/ol>\n<div class=\"bg-black mb-4 rounded-md\">\n<div class=\"flex items-center relative text-gray-200 bg-gray-800 px-4 py-2 text-xs font-sans\"><\/div>\n<div class=\"p-4 overflow-y-auto\"><code class=\"!whitespace-pre-wrap hljs language-css\">acme<span class=\"hljs-selector-class\">.sh<\/span> <span class=\"hljs-attr\">--install-cert<\/span> -d example<span class=\"hljs-selector-class\">.com<\/span> <span class=\"hljs-attr\">--key-file<\/span> \/path\/<span class=\"hljs-selector-tag\">to<\/span>\/key<span class=\"hljs-selector-class\">.pem<\/span> <span class=\"hljs-attr\">--fullchain-file<\/span> \/path\/<span class=\"hljs-selector-tag\">to<\/span>\/fullchain<span class=\"hljs-selector-class\">.pem<\/span><br \/>\n<\/code><\/div>\n<\/div>\n<ol start=\"8\">\n<li>Once the cert files are installed, you will need to configure your web server to use them.<\/li>\n<li>You can also use the <code>acme.sh --renew<\/code> command to renew the cert files.<\/li>\n<\/ol>\n<p>It&#8217;s important to keep in mind that the acme.sh script is a third-party tool, and that it may not always work correctly or may be updated in a way that breaks compatibility with your system.<\/p>\n<p>It&#8217;s also important to note that Cloudflare offers free and paid plans, the free plan has some limits, make sure you check the limits of the plan you have and the cost of the certificate.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can use acme.sh and Cloudflare DNS to issue a Let&#8217;s Encrypt wildcard certificate. Here are the steps you can follow: Start by installing acme.sh by running the following command: curl https:\/\/get.acme.sh | sh Next, you will need to generate an API key for Cloudflare. This can be done by visiting the &#8220;My Profile&#8221; page &#8230; <a title=\"How to issue Let\u2019s Encrypt wildcard certificate with acme.sh and Cloudflare DNS\" class=\"read-more\" href=\"https:\/\/trysiteprice.com\/blog\/how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns\/\" aria-label=\"Read more about How to issue Let\u2019s Encrypt wildcard certificate with acme.sh and Cloudflare DNS\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1800","post","type-post","status-publish","format-standard","hentry","category-best-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to issue Let\u2019s Encrypt wildcard certificate with acme.sh and Cloudflare DNS - TrySitePrice<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/trysiteprice.com\/blog\/how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to issue Let\u2019s Encrypt wildcard certificate with acme.sh and Cloudflare DNS - TrySitePrice\" \/>\n<meta property=\"og:description\" content=\"You can use acme.sh and Cloudflare DNS to issue a Let&#8217;s Encrypt wildcard certificate. Here are the steps you can follow: Start by installing acme.sh by running the following command: curl https:\/\/get.acme.sh | sh Next, you will need to generate an API key for Cloudflare. This can be done by visiting the &#8220;My Profile&#8221; page ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/trysiteprice.com\/blog\/how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns\/\" \/>\n<meta property=\"og:site_name\" content=\"TrySitePrice\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-24T03:14:25+00:00\" \/>\n<meta name=\"author\" content=\"Rahul Sahu\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/trysiteprice.com\/blog\/how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/trysiteprice.com\/blog\/how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns\/\"},\"author\":{\"name\":\"Rahul Sahu\",\"@id\":\"https:\/\/trysiteprice.com\/blog\/#\/schema\/person\/358e04eeea4281deacad2f30c58e67f4\"},\"headline\":\"How to issue Let\u2019s Encrypt wildcard certificate with acme.sh and Cloudflare DNS\",\"datePublished\":\"2023-01-24T03:14:25+00:00\",\"dateModified\":\"2023-01-24T03:14:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/trysiteprice.com\/blog\/how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns\/\"},\"wordCount\":246,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/trysiteprice.com\/blog\/#organization\"},\"articleSection\":[\"Best\/Tutorial\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/trysiteprice.com\/blog\/how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/trysiteprice.com\/blog\/how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns\/\",\"url\":\"https:\/\/trysiteprice.com\/blog\/how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns\/\",\"name\":\"How to issue Let\u2019s Encrypt wildcard certificate with acme.sh and Cloudflare DNS - TrySitePrice\",\"isPartOf\":{\"@id\":\"https:\/\/trysiteprice.com\/blog\/#website\"},\"datePublished\":\"2023-01-24T03:14:25+00:00\",\"dateModified\":\"2023-01-24T03:14:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/trysiteprice.com\/blog\/how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/trysiteprice.com\/blog\/how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/trysiteprice.com\/blog\/how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/trysiteprice.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to issue Let\u2019s Encrypt wildcard certificate with acme.sh and Cloudflare DNS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/trysiteprice.com\/blog\/#website\",\"url\":\"https:\/\/trysiteprice.com\/blog\/\",\"name\":\"TrySitePrice\",\"description\":\"Free Website Value Calculator Tool\",\"publisher\":{\"@id\":\"https:\/\/trysiteprice.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/trysiteprice.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/trysiteprice.com\/blog\/#organization\",\"name\":\"TrySitePrice\",\"url\":\"https:\/\/trysiteprice.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/trysiteprice.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/trysiteprice.com\/blog\/wp-content\/uploads\/2021\/12\/cropped-trysiteprice-logo.png\",\"contentUrl\":\"https:\/\/trysiteprice.com\/blog\/wp-content\/uploads\/2021\/12\/cropped-trysiteprice-logo.png\",\"width\":395,\"height\":268,\"caption\":\"TrySitePrice\"},\"image\":{\"@id\":\"https:\/\/trysiteprice.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/trysiteprice.com\/blog\/#\/schema\/person\/358e04eeea4281deacad2f30c58e67f4\",\"name\":\"Rahul Sahu\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/trysiteprice.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/51f0f95f7b95665f62baed2211572165?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/51f0f95f7b95665f62baed2211572165?s=96&d=mm&r=g\",\"caption\":\"Rahul Sahu\"},\"sameAs\":[\"https:\/\/trysiteprice.com\/blog\"],\"url\":\"https:\/\/trysiteprice.com\/blog\/author\/rsahu4242_trysiteprice\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to issue Let\u2019s Encrypt wildcard certificate with acme.sh and Cloudflare DNS - TrySitePrice","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:\/\/trysiteprice.com\/blog\/how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns\/","og_locale":"en_US","og_type":"article","og_title":"How to issue Let\u2019s Encrypt wildcard certificate with acme.sh and Cloudflare DNS - TrySitePrice","og_description":"You can use acme.sh and Cloudflare DNS to issue a Let&#8217;s Encrypt wildcard certificate. Here are the steps you can follow: Start by installing acme.sh by running the following command: curl https:\/\/get.acme.sh | sh Next, you will need to generate an API key for Cloudflare. This can be done by visiting the &#8220;My Profile&#8221; page ... Read more","og_url":"https:\/\/trysiteprice.com\/blog\/how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns\/","og_site_name":"TrySitePrice","article_published_time":"2023-01-24T03:14:25+00:00","author":"Rahul Sahu","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/trysiteprice.com\/blog\/how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns\/#article","isPartOf":{"@id":"https:\/\/trysiteprice.com\/blog\/how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns\/"},"author":{"name":"Rahul Sahu","@id":"https:\/\/trysiteprice.com\/blog\/#\/schema\/person\/358e04eeea4281deacad2f30c58e67f4"},"headline":"How to issue Let\u2019s Encrypt wildcard certificate with acme.sh and Cloudflare DNS","datePublished":"2023-01-24T03:14:25+00:00","dateModified":"2023-01-24T03:14:25+00:00","mainEntityOfPage":{"@id":"https:\/\/trysiteprice.com\/blog\/how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns\/"},"wordCount":246,"commentCount":0,"publisher":{"@id":"https:\/\/trysiteprice.com\/blog\/#organization"},"articleSection":["Best\/Tutorial"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/trysiteprice.com\/blog\/how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/trysiteprice.com\/blog\/how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns\/","url":"https:\/\/trysiteprice.com\/blog\/how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns\/","name":"How to issue Let\u2019s Encrypt wildcard certificate with acme.sh and Cloudflare DNS - TrySitePrice","isPartOf":{"@id":"https:\/\/trysiteprice.com\/blog\/#website"},"datePublished":"2023-01-24T03:14:25+00:00","dateModified":"2023-01-24T03:14:25+00:00","breadcrumb":{"@id":"https:\/\/trysiteprice.com\/blog\/how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/trysiteprice.com\/blog\/how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/trysiteprice.com\/blog\/how-to-issue-lets-encrypt-wildcard-certificate-with-acme-sh-and-cloudflare-dns\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/trysiteprice.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to issue Let\u2019s Encrypt wildcard certificate with acme.sh and Cloudflare DNS"}]},{"@type":"WebSite","@id":"https:\/\/trysiteprice.com\/blog\/#website","url":"https:\/\/trysiteprice.com\/blog\/","name":"TrySitePrice","description":"Free Website Value Calculator Tool","publisher":{"@id":"https:\/\/trysiteprice.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/trysiteprice.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/trysiteprice.com\/blog\/#organization","name":"TrySitePrice","url":"https:\/\/trysiteprice.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/trysiteprice.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/trysiteprice.com\/blog\/wp-content\/uploads\/2021\/12\/cropped-trysiteprice-logo.png","contentUrl":"https:\/\/trysiteprice.com\/blog\/wp-content\/uploads\/2021\/12\/cropped-trysiteprice-logo.png","width":395,"height":268,"caption":"TrySitePrice"},"image":{"@id":"https:\/\/trysiteprice.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/trysiteprice.com\/blog\/#\/schema\/person\/358e04eeea4281deacad2f30c58e67f4","name":"Rahul Sahu","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/trysiteprice.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/51f0f95f7b95665f62baed2211572165?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/51f0f95f7b95665f62baed2211572165?s=96&d=mm&r=g","caption":"Rahul Sahu"},"sameAs":["https:\/\/trysiteprice.com\/blog"],"url":"https:\/\/trysiteprice.com\/blog\/author\/rsahu4242_trysiteprice\/"}]}},"_links":{"self":[{"href":"https:\/\/trysiteprice.com\/blog\/wp-json\/wp\/v2\/posts\/1800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/trysiteprice.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trysiteprice.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trysiteprice.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/trysiteprice.com\/blog\/wp-json\/wp\/v2\/comments?post=1800"}],"version-history":[{"count":1,"href":"https:\/\/trysiteprice.com\/blog\/wp-json\/wp\/v2\/posts\/1800\/revisions"}],"predecessor-version":[{"id":1809,"href":"https:\/\/trysiteprice.com\/blog\/wp-json\/wp\/v2\/posts\/1800\/revisions\/1809"}],"wp:attachment":[{"href":"https:\/\/trysiteprice.com\/blog\/wp-json\/wp\/v2\/media?parent=1800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trysiteprice.com\/blog\/wp-json\/wp\/v2\/categories?post=1800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trysiteprice.com\/blog\/wp-json\/wp\/v2\/tags?post=1800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}