https://github.com/fabriziosalmi/mtls-cloudflare-aws
mTLS implementation between Cloudflare and AWS
https://github.com/fabriziosalmi/mtls-cloudflare-aws
aws cloudflare mtls mtls-authentication
Last synced: 4 months ago
JSON representation
mTLS implementation between Cloudflare and AWS
- Host: GitHub
- URL: https://github.com/fabriziosalmi/mtls-cloudflare-aws
- Owner: fabriziosalmi
- License: agpl-3.0
- Created: 2024-06-21T08:15:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-21T13:40:47.000Z (over 1 year ago)
- Last Synced: 2025-06-14T06:01:57.642Z (4 months ago)
- Topics: aws, cloudflare, mtls, mtls-authentication
- Language: Shell
- Homepage:
- Size: 103 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cloudflare and AWS
### Cloudflare Scripts
- **create_ca_and_cert.sh**
- Creates a Certificate Authority (CA) and an Application Load Balancer (ALB) certificate. Signs the ALB certificate with the CA and prepares the certificates for upload to Cloudflare.- **upload_cert_to_cf.sh**
- Uploads a previously created certificate and its private key to Cloudflare using the Cloudflare API.- **delete_cert_from_cf.sh**
- Deletes a certificate from Cloudflare using its certificate ID.- **fetch_certs_from_cf.sh**
- Fetches the list of certificates from Cloudflare.- **fetch_tls_client_auth_details.sh**
- Fetches the details of TLS client authentication from Cloudflare.### AWS mTLS Setup Scripts
- **setup_s3_trust_store.sh**
- Creates an S3 bucket, uploads CA certificates for mTLS, and generates the CA URI for use in the ALB mTLS configuration.- **setup_target_group.sh**
- Creates a target group in AWS for the ALB.- **setup_security_groups.sh**
- Sets up security groups for the ALB and associated instances.- **setup_alb.sh**
- Creates an ALB, associates it with the target group, and configures HTTPS and mTLS.- **validate_acm_certificate.sh**
- Requests and validates an ACM certificate using DNS validation via Cloudflare.## Configuration
All scripts can be configured using:
- A configuration file (`CF_api.conf` or `aws_config.conf`)
- Command-line arguments
- Environment variables### Configuration Files
- `CF_api.conf` for Cloudflare scripts
- `aws_config.conf` for AWS scripts