ocelotconsulting / node-acme-lambda

Use AWS Lambda to manage SSL certificates for ACME providers like Let's Encrypt.
http://www.ocelotconsulting.com/2016/10/07/letsencrypt-lambda.html
ISC License
123 stars 47 forks source link

Add an option to store ready-to-download certificates on S3 #18

Open blckct opened 6 years ago

blckct commented 6 years ago

From what I see currently you have to run npm run pems to get ready to use certificates, it would be nice to have that as a result of Lambda.

larryboymi commented 6 years ago

@blckct are you saying to store the .pem inside the s3 bucket alongside the certificate json that currently is put there? or in a location otherwise configured?

blckct commented 6 years ago

In the same bucket would be alright. My use case when I wrote was to automatically generate certificates for local development use and then just download them using cron from bucket. I've done it without lambda but a lambda solution would be nice.

larryboymi commented 6 years ago

Sure.... I was trying to minimize the count of files that would have to be configured ahead of time (configuration being its own burden). However, I could add a flag defaulted to false that would write to .pems with the same name as the cert object keys, with some hyphenation for the chain parts.