From 5b771039fc705ed822a3331f5ee4761b5fab2346 Mon Sep 17 00:00:00 2001 From: neilpang Date: Sun, 20 Nov 2016 23:21:07 +0800 Subject: [PATCH] Support AWS Route53 api --- README.md | 2 +- acme.sh | 5 +++++ dnsapi/README.md | 20 ++++++++++++++++++-- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ca51c73d..69348bf9 100644 --- a/README.md +++ b/README.md @@ -253,7 +253,7 @@ You don't have to do anything manually! 1. CloudXNS.com API 1. GoDaddy.com API 1. OVH, kimsufi, soyoustart and runabove API -1. AWS Route 53, see: https://github.com/Neilpang/acme.sh/issues/65 +1. AWS Route 53 1. PowerDNS.com API 1. lexicon DNS API: https://github.com/Neilpang/acme.sh/wiki/How-to-use-lexicon-dns-api (DigitalOcean, DNSimple, DNSMadeEasy, DNSPark, EasyDNS, Namesilo, NS1, PointHQ, Rage4 and Vultr etc.) diff --git a/acme.sh b/acme.sh index 63ec7d44..7a305cf2 100755 --- a/acme.sh +++ b/acme.sh @@ -3613,6 +3613,11 @@ _initconf() { #PDNS_Token=\"0123456789ABCDEF\" #PDNS_Ttl=60 +####################### +#Amazon Route53: +#AWS_ACCESS_KEY_ID=XXXXXXXXXX +#AWS_SECRET_ACCESS_KEY=XXXXXXXXXXXXXXX + " >"$ACCOUNT_CONF_PATH" fi } diff --git a/dnsapi/README.md b/dnsapi/README.md index f1df726f..9a8730c9 100644 --- a/dnsapi/README.md +++ b/dnsapi/README.md @@ -185,7 +185,23 @@ acme.sh --issue --dns dns_me -d example.com -d www.example.com The `ME_Key` and `ME_Secret` will be saved in `~/.acme.sh/account.conf` and will be reused when needed. -# 10. Use custom API +## 10. Use Amazon Route53 domain API + +https://github.com/Neilpang/acme.sh/wiki/How-to-use-Amazon-Route53-API + +``` +export AWS_ACCESS_KEY_ID=XXXXXXXXXX +export AWS_SECRET_ACCESS_KEY=XXXXXXXXXXXXXXX +``` + +To issue a cert: +``` +acme.sh --issue --dns dns_aws -d example.com -d www.example.com +``` + +The `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` will be saved in `~/.acme.sh/account.conf` and will be reused when needed. + +# 11. Use custom API If your API is not supported yet, you can write your own DNS API. @@ -202,6 +218,6 @@ acme.sh --issue --dns dns_myapi -d example.com -d www.example.com For more details, please check our sample script: [dns_myapi.sh](dns_myapi.sh) -## 11. Use lexicon DNS API +## 12. Use lexicon DNS API https://github.com/Neilpang/acme.sh/wiki/How-to-use-lexicon-dns-api