{"id":108967,"date":"2022-12-06T13:25:16","date_gmt":"2022-12-06T12:25:16","guid":{"rendered":"https:\/\/www.avanet.com\/kb\/how-to-create-a-lets-encrypt-wildcard-certificate\/"},"modified":"2023-05-01T12:11:15","modified_gmt":"2023-05-01T11:11:15","slug":"how-to-create-a-lets-encrypt-wildcard-certificate","status":"publish","type":"kb","link":"https:\/\/www.avanet.com\/en\/kb\/how-to-create-a-lets-encrypt-wildcard-certificate\/","title":{"rendered":"How to create a Let&#8217;s Encrypt Wildcard Certificate"},"content":{"rendered":"\n<p>This article explains how to create a free Let&#8217;s Encrypt wildcard certificate.<\/p>\n\n<p>I recommend using a certificate that is valid for longer than 3 months, such as Let&#8217;s Encrypt certificates.\nAt Central, the import cannot be automated yet.\nHowever, you often want to try out the ZTNA solution first in the 30-day test phase.\nLet&#8217;s Encrypt is a good choice here if you do not already have a wildcard certificate.   <\/p>\n\n<h3 class=\"wp-block-heading\" id=\"h-let-s-encrypt-certbot-tool-installieren\">Install Let&#8217;s Encrypt Certbot Tool<\/h3>\n\n<p>Before you can create free wildcard certificates, you need certbot installed.\nI&#8217;m using an Ubuntu Server here.\nTo install it, run the following commands:  <\/p>\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt-get install letsencrypt<\/code><\/pre>\n\n<h3 class=\"wp-block-heading\" id=\"h-let-s-encrypt-wildcard-ssl-zertifikat-generieren\">Generate Let&#8217;s Encrypt Wildcard SSL Certificate<\/h3>\n\n<p>After installing Certbot, you can now start creating certificates.<\/p>\n\n<p>For wildcard certificates Let&#8217;s Encrypt requires verification via DNS.\nThis ensures that you are really authorized to create a certificate for this domain. <\/p>\n\n<p>So, to create a wildcard certificate for the *.avanet.com domain, we run the following commands:<\/p>\n\n<pre class=\"wp-block-code\"><code>sudo certbot certonly --manual --preferred-challenges=dns --email <strong>webmaster@avanet.com<\/strong> --server https:\/\/acme-v02.api.letsencrypt.org\/directory --agree-tos -d <strong>avanet.com<\/strong> -d *.<strong>avanet.com<\/strong><\/code><\/pre>\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>certonly<\/strong><\/td><td>Request or renew certificate without installing it<\/td><\/tr><tr><td><strong>-manual<\/strong><\/td><td>Obtaining certificates<\/td><\/tr><tr><td><strong>-preferred-challenges=dns<\/strong><\/td><td>Use DNS to authenticate as domain owner<\/td><\/tr><tr><td><strong>-server<\/strong><\/td><td>Server, which should be used for the generation of the certificates<\/td><\/tr><tr><td><strong>-agree-tos<\/strong><\/td><td>Agree with the terms and conditions of the ACME server<\/td><\/tr><tr><td><strong>-d<\/strong><\/td><td>Domain for which a certificate is to be created<\/td><\/tr><\/tbody><\/table><\/figure>\n\n<p>After completing the above command, it is still necessary to verify the ownership of the domain.\nFor this purpose, it is necessary to create a TXT record on the DNS servers. <\/p>\n\n<p>After verification, the certificates are generated and can be downloaded from the following path:<\/p>\n\n<pre class=\"wp-block-code\"><code>\/etc\/letsencrypt\/live\/<strong>avanet.com<\/strong>\/<\/code><\/pre>\n\n<p>Later we need the files <em>cert.pem<\/em> and <em>privkey.pem<\/em>.\nThe last one must be renamed from <em>privkey.pem<\/em> to <em>privkey.key<\/em>. <\/p>\n","protected":false},"author":5,"featured_media":0,"parent":0,"template":"","format":"standard","kb_kategorie":[715],"class_list":["post-108967","kb","type-kb","status-publish","format-standard","hentry","kb_kategorie-zero-trust"],"blocksy_meta":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.avanet.com\/en\/wp-json\/wp\/v2\/kb\/108967","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.avanet.com\/en\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.avanet.com\/en\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.avanet.com\/en\/wp-json\/wp\/v2\/users\/5"}],"wp:attachment":[{"href":"https:\/\/www.avanet.com\/en\/wp-json\/wp\/v2\/media?parent=108967"}],"wp:term":[{"taxonomy":"kb_kategorie","embeddable":true,"href":"https:\/\/www.avanet.com\/en\/wp-json\/wp\/v2\/kb_kategorie?post=108967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}