-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cdcb5c1
commit cc13eb8
Showing
2 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,50 @@ | ||
# cloud-ca | ||
Cloud CA demonstration built using AWS CA Terraform Module | ||
|
||
## ECDSA Certificate Authority with private CRL | ||
## CA Overview | ||
* ECDSA Issuing and Root CA | ||
* Public certs and CRL | ||
* Environment: `dev` | ||
|
||
## CA Certificates and CRLs | ||
|
||
### CRL Distribution Point (CDP) | ||
|
||
| CDP - Root CA | CDP - Issuing CA | | ||
:------------:|:------------:| | ||
| http://certs.cloud-ca.com/serverless-root-ca-dev.crl | http://certs.cloud-ca.com/serverless-issuing-ca-dev.crl | | ||
|
||
### Authority Information Access (AIA) | ||
|
||
| AIA - Root CA | AIA - Issuing CA | | ||
|:------------:|:------------:| | ||
| http://certs.cloud-ca.com/serverless-root-ca-dev.crt | http://certs.cloud-ca.com/serverless-issuing-ca-dev.crt | | ||
|
||
### CA Bundle (for TrustStore) | ||
|
||
| CA Bundle | | ||
|:--------------------------------------------------------------------------------------------:| | ||
| http://certs.cloud-ca.com/serverless-ca-bundle-dev.pem | | ||
|
||
|
||
## Create client certificate | ||
* log in to the CA AWS account with your terminal using AWS CLI, e.g. `aws sso login` or set AWS environment variables | ||
* from the root of this repository: | ||
``` | ||
python -m venv .venv | ||
source .venv/bin/activate (Linux / MacOS) | ||
.venv/scripts/activate (Windows PowerShell) | ||
pip install -r tests/requirements-dev.txt | ||
python tests/client-cert.py | ||
``` | ||
* you will now have a client key and certificate on your laptop | ||
* bundled Root CA and Issuing CA certs are also provided | ||
|
||
|
||
|
||
## Local Development - Terraform | ||
``` | ||
terraform init -backend-config=bucket={YOUR_TERRAFORM_STATE_BUCKET} -backend-config=key=cloud-ca -backend-config=region={YOUR_TERRAFORM_STATE_REGION} | ||
terraform plan | ||
terraform apply | ||
``` | ||
``` |