llun / letsencrypt-lambda

Requesting let's encrypt SSL with AWS lambda and storing certificates in S3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

letslambda-encrypt

Registering or renewing let's encrypt ssl with AWS Lambda

Usage

  • Adding role and environment variables into project.json
  • Deploy function with apex
apex deploy
  • Invoke function with cloudwatch event or apex invoke for fetching SSL
apex invoke <<< '{ "domain": "my.superawesome.domain" }'

Variables

  • S3_BUCKET, Bucket name for storing let's encrypt files including certificates
  • LETSENCRYPT_ACCOUNT_EMAIL, Email address for requesting SSL from let's encrypt
  • LETSENCRYPT_SERVER, Let's encrypt environment, choose between "production" and "staging"
  • CLOUDFLARE_EMAIL, Cloudflare account email
  • CLOUDFLARE_KEY, Cloudflare global api key
  • DELAY, Delay time before complete challenge after creating TXT record in DNS (Cloudflare)
  • DEBUG, Enable debug mode

License

ISC

About

Requesting let's encrypt SSL with AWS lambda and storing certificates in S3


Languages

Language:JavaScript 100.0%