Store node-greenlock certificates and account information in S3
const S3 = {
bucketName: 'letsencrypt'
}
const store = require('le-store-s3').create({ S3 })
const challenge = require('le-challenge-s3').create({ S3 })
const instance = LE.create({
store,
challenges: { 'http-01': challenge },
challengeType: 'http-01',
agreeToTerms (opts, callback) {
callback(null, opts.tosUrl)
}
})
instance.register({
domains: ['awesome.domain'],
email: '[email protected]',
agreeTos: true,
rsaKeySize: 2048,
challengeType: 'http-01'
})
ISC