<commit_before>#+TITLE: AWS Certificate Manager

* Table of Contents :TOC_3_gh:
- [[#how-to][How-to]]
  - [[#use-dns-to-validate-domain-ownership][Use DNS to Validate Domain Ownership]]

* How-to
** Use DNS to Validate Domain Ownership
- https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html
- You can revoke permission at any time by removing the record

[[file:_img/screenshot_2018-02-27_16-45-03.png]]
<commit_msg>Write about second subdomain in ACM<commit_after>#+TITLE: AWS Certificate Manager

* Table of Contents :TOC_3_gh:
- [[#how-to][How-to]]
  - [[#use-dns-to-validate-domain-ownership][Use DNS to Validate Domain Ownership]]
  - [[#support-second-level-subdomains][Support second level subdomains]]

* How-to
** Use DNS to Validate Domain Ownership
- https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html
- You can revoke permission at any time by removing the record

[[file:_img/screenshot_2018-02-27_16-45-03.png]]
** Support second level subdomains
- https://stackoverflow.com/questions/47811149/wildcard-for-second-level-subdomain
- https://docs.aws.amazon.com/acm/latest/userguide/acm-certificate.html

#+BEGIN_QUOTE
the asterisk (*) must be in the leftmost position of the domain name and can protect only one subdomain level.
#+END_QUOTE

Unfortunately multiple wildcarded domains like ~*.*.example.com~ are not possible/supported.
However, things like ~*.api.example.com~ is ok.

{'fraction_non_alphanumeric': 0.13125, 'fraction_numerical': 0.02638888888888889, 'mean_word_length': 4.673228346456693, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7537898', 'n_tokens_mistral': 524, 'n_tokens_neox': 480, 'n_words': 121}