<commit_before>certbot-route53
===============

**NOTE: If you're already using Route53, you're propbably better off using [AWS Certificate Manager](https://aws.amazon.com/certificate-manager/), which was released after this script.**

This shell script helps create [Let's Encrypt][] certificates for [AWS Route53][]. It uses [Certbot][] to automate certificate requests, and the [AWS CLI][] to automate DNS challenge record creation.

Installation and Usage
----------------------

1. Install Certbot and the AWS CLI. You can use [Homebrew][] (`brew install awscli certbot`) or [pip][] (`pip install awscli certbot`).

2. [Configure the AWS CLI][]. Your account must have permission to list and update Route53 records.

3. Download the [certbot-route53.sh][] script.

    ```sh
    mkdir my-certificates
    cd my-certificates
    curl -sL https://git.io/vylLx -o certbot-route53.sh
    chmod a+x certbot-route53.sh
    ```

4. Run the script with your (comma-separated) domain(s) and email address:

    ```sh
    sh certbot-route53.sh \
      --agree-tos \
      --manual-public-ip-logging-ok \
      --domains jed.is,www.jed.is \
      --email $(git config user.email)
    ```

5. Wait patiently (usually about two minutes) while, for each domain requested:

    - Certbot asks Let's Encrypt for a DNS validation challenge string,
    - AWS CLI asks Route53 to create a domain TXT record with the challenge value,
    - Let's Encrypt validates the TXT record and returns a certificate, and finally
    - AWS CLI asks Route53 to delete the TXT record.

6. Find your new certificate(s) in the `letsencrypt/live` directory.

![terminal](https://cloud.githubusercontent.com/assets/4433/23584470/9306b8ac-0130-11e7-9ffc-ef7d91971620.png)

[AWS Route53]: https://aws.amazon.com/route53
[Let's Encrypt]: https://letsencrypt.org
[Certbot]: https://certbot.eff.org
[AWS CLI]: https://aws.amazon.com/cli/
[Homebrew]: https://brew.sh/
[pip]: https://pypi.python.org/pypi/pip
[certbot-route53.sh]: https://git.io/vylLx
[Configure the AWS CLI]: http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html
<commit_msg>Reverse email and domains parameters<commit_after>certbot-route53
===============

**NOTE: If you're already using Route53, you're propbably better off using [AWS Certificate Manager](https://aws.amazon.com/certificate-manager/), which was released after this script.**

This shell script helps create [Let's Encrypt][] certificates for [AWS Route53][]. It uses [Certbot][] to automate certificate requests, and the [AWS CLI][] to automate DNS challenge record creation.

Installation and Usage
----------------------

1. Install Certbot and the AWS CLI. You can use [Homebrew][] (`brew install awscli certbot`) or [pip][] (`pip install awscli certbot`).

2. [Configure the AWS CLI][]. Your account must have permission to list and update Route53 records.

3. Download the [certbot-route53.sh][] script.

    ```sh
    mkdir my-certificates
    cd my-certificates
    curl -sL https://git.io/vylLx -o certbot-route53.sh
    chmod a+x certbot-route53.sh
    ```

4. Run the script with your (comma-separated) domain(s) and email address:

    ```sh
    sh certbot-route53.sh \
      --agree-tos \
      --manual-public-ip-logging-ok \
      --email $(git config user.email) \
      --domains jed.is,www.jed.is
    ```

5. Wait patiently (usually about two minutes) while, for each domain requested:

    - Certbot asks Let's Encrypt for a DNS validation challenge string,
    - AWS CLI asks Route53 to create a domain TXT record with the challenge value,
    - Let's Encrypt validates the TXT record and returns a certificate, and finally
    - AWS CLI asks Route53 to delete the TXT record.

6. Find your new certificate(s) in the `letsencrypt/live` directory.

![terminal](https://cloud.githubusercontent.com/assets/4433/23584470/9306b8ac-0130-11e7-9ffc-ef7d91971620.png)

[AWS Route53]: https://aws.amazon.com/route53
[Let's Encrypt]: https://letsencrypt.org
[Certbot]: https://certbot.eff.org
[AWS CLI]: https://aws.amazon.com/cli/
[Homebrew]: https://brew.sh/
[pip]: https://pypi.python.org/pypi/pip
[certbot-route53.sh]: https://git.io/vylLx
[Configure the AWS CLI]: http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html

{'fraction_non_alphanumeric': 0.13935001169043723, 'fraction_numerical': 0.030862754267009587, 'mean_word_length': 3.5365853658536586, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 20, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2419193', 'n_tokens_mistral': 1471, 'n_tokens_neox': 1341, 'n_words': 440}