diff --git a/.gitignore b/.gitignore index 898cd2c..14cf25c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ letslambda.yml +.env +src diff --git a/README.md b/README.md index aca4eed..6e6c716 100644 --- a/README.md +++ b/README.md @@ -13,16 +13,17 @@ The configuration file is based on YAML. It should be easy to understand by revi `domains`: a list of domain information. - - `name`: this is used to configure endpoints, DNS, and CN for the certification + - `name`: this is used to configure endpoints, DNS, and CN for the certification - `countryName`: is used for countryName in the CSR - `reuse_key`: will try to reuse the same private key to generate the CSR. This is very useful if you ever want to use Public Key pinning in your mobile app and yet, want to renew your certificates every x months. ## Installation ## -This is the tricky part. This project relies on third party projects that reuires some files to be compiled. Since AWS Lambda runs on Amazon Linux 64 bit, it is important that you have such instance running to prepare your Lambda function. +This is the tricky part. This project relies on third party projects that requires some files to be compiled. Since AWS Lambda runs on Amazon Linux 64 bit, it is important that you have such instance running to prepare your Lambda function. $> yum install libcffi-devel libyaml-devel gcc openssl-devel git $> virtualenv .env + $> source .env/bin/activate $> pip install -r requirements.txt $> mv .env/lib/python2.7/site-packages/* . $> mv .env/lib64/python2.7/site-packages/* . @@ -30,7 +31,19 @@ This is the tricky part. This project relies on third party projects that reuire $> rm -rf .env $> zip -r letslambda.zip . -Once this is done, alkl you have to do is to upload your lamnbda function to an S3 bucket. +If you're development environment is running on Debian Linux, you need the following commands: + + $> apt-get install -V python-virtualenv python-pip libssl-dev python-dev libffi-dev + $> virtualenv .env + $> source .env/bin/activate + $> pip install -r requirements.txt + $> mv .env/lib/python2.7/site-packages/* . + $> mv .env/lib64/python2.7/site-packages/* . + $> mv .env/src/acme/acme/acme* . + $> rm -rf .env + $> zip -r letslambda.zip . + +Once this is done, all you have to do is to upload your lamnbda function to an S3 bucket. $> aws s3 cp letslambda.zip s3://bucket/