le-challenge-s3
Use S3 for storing challenge key from ACME and serve it via AWS Lambda
Using
My setup is using with le-store-s3 to store all certificates inside S3 and use AWS API gateway to serve challenge.
After API Gateway is setup, run script below to register domain
const S3 = bucketName: 'letsencrypt' const store = const challenge = const instance = LEinstance
or invoke lambda function with below event
Lambda function setup
Use apex to deploy all functions apex deploy
and setup API Gateway with below schema
---swagger: "2.0"info: version: "2017-05-21T13:41:32Z" title: "Letsencrypt"basePath: "/live"schemes:- "https"paths: /{acme+}: get: produces: - "application/json" parameters: - name: "acme" in: "path" required: true type: "string" responses: 200: description: "200 response" schema: $ref: "#/definitions/Empty" options: consumes: - "application/json" produces: - "application/json" responses: 200: description: "200 response" schema: $ref: "#/definitions/Empty" headers: Access-Control-Allow-Origin: type: "string" Access-Control-Allow-Methods: type: "string" Access-Control-Allow-Headers: type: "string"definitions: Empty: type: "object" title: "Empty Schema"
And point your domain to this API Gateway. My setup is using Cloudflare with redirect rule to redirect to this url.
License
ISC