S3/CloudFront plugin for Let's Encrypt client
Project description
## S3/CloudFront plugin for Let's Encrypt client
Use the letsencrypt client to generate and install a certificate to be used with
an AWS CloudFront distribution of an S3 bucket.
### Before you start
Follow a guide like this one [http://docs.aws.amazon.com/gettingstarted/latest/swh/website-hosting-intro.html]()
to use S3 and CloudFront for static site hosting.
Once you are done you should have a domain pointing to a CloudFront distribution
that will use an S3 bucket for origin. It is important for the certificate
validation that both HTTP and HTTPS traffic are enabled (at least while you get
the certificate).
### Setup
1. Install the letsencrypt client [https://letsencrypt.readthedocs.org/en/latest/using.html#installation]()
1. Clone this repo locally: `git clone https://github.com/dlapiduz/letsencrypt-s3front.git`
1. Install it:
```
cd letsencrypt-s3front
python setup.py Install
```
### How to use it
To generate a certificate and install it in a CloudFront distribution:
```
AWS_ACCESS_KEY_ID="your_key" \
AWS_SECRET_ACCESS_KEY="your_secret" \
letsencrypt --agree-tos -a letsencrypt-s3front:auth \
--letsencrypt-s3front:auth-s3-bucket the_bucket \
-i letsencrypt-s3front:installer \
--letsencrypt-s3front:installer-cf-distribution-id your_cf_distribution_id \
-d the_domain
```
Follow the screen prompts and you should end up with the certificate in your
distribution. It may take a couple minutes to update.
Use the letsencrypt client to generate and install a certificate to be used with
an AWS CloudFront distribution of an S3 bucket.
### Before you start
Follow a guide like this one [http://docs.aws.amazon.com/gettingstarted/latest/swh/website-hosting-intro.html]()
to use S3 and CloudFront for static site hosting.
Once you are done you should have a domain pointing to a CloudFront distribution
that will use an S3 bucket for origin. It is important for the certificate
validation that both HTTP and HTTPS traffic are enabled (at least while you get
the certificate).
### Setup
1. Install the letsencrypt client [https://letsencrypt.readthedocs.org/en/latest/using.html#installation]()
1. Clone this repo locally: `git clone https://github.com/dlapiduz/letsencrypt-s3front.git`
1. Install it:
```
cd letsencrypt-s3front
python setup.py Install
```
### How to use it
To generate a certificate and install it in a CloudFront distribution:
```
AWS_ACCESS_KEY_ID="your_key" \
AWS_SECRET_ACCESS_KEY="your_secret" \
letsencrypt --agree-tos -a letsencrypt-s3front:auth \
--letsencrypt-s3front:auth-s3-bucket the_bucket \
-i letsencrypt-s3front:installer \
--letsencrypt-s3front:installer-cf-distribution-id your_cf_distribution_id \
-d the_domain
```
Follow the screen prompts and you should end up with the certificate in your
distribution. It may take a couple minutes to update.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
letsencrypt-s3front-0.1.0.tar.gz
(13.2 kB
view hashes)
Close
Hashes for letsencrypt-s3front-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e9b99332f7fc9ae0e33e15d97372e8e54a52a1de29bba47ec9dd3fddd3ba21a |
|
MD5 | f4180bf2bd09bb23b15e51cbd17af8a9 |
|
BLAKE2b-256 | 5e363290d6b71ade4869f52140fb6908ba5d6c29341d9b30af90426f2474fd65 |