It is a service for acquire ssl certificates from Let's Encrypt thorugh DNS method in automatic way.
- Fill the readme
- More DNS providers
Requirements:
Ruby 2.3.0 or higher Redis 2.8 or higher
Installation:
- Fork or clone this repo
- Run
bundle install
Export environment variables:
- LEGDNS_DNS_PROVIDER
- LEGDNS_MAILTO
- LEGDNS_ENDPOINT
- LEGDNS_AWS_REGION
- LEGDNS_AWS_ACCESS_KEY_ID
- LEGDNS_AWS_SECRET_ACCESS_KEY
sidekiq -r app.rb
If no LEGDN_DNS_PROVIDER provided application will use default provider - aws.
bundle exec rackup -p 3000
To acquire certificate you need to send HTTP POST request to the service with json data like:
curl -X POST -is 'http://127.0.0.1:3000/cert' -d '{"domains":[["example.com", "a.example.com", "b.example.com"], ["example.net"]]}'
Where first domain will be the main.