acmesh-official / acme.sh

A pure Unix shell script implementing ACME client protocol
https://acme.sh
GNU General Public License v3.0
39.42k stars 4.98k forks source link

Feature request: namecheap DNS support #734

Closed jtbr closed 7 years ago

jtbr commented 7 years ago

Feature request for namecheap.com DNS support. I believe they are one of the larger domain registrars and handle DNS for many of those domains.

The API seems straightforward, basically these two api calls via URL: GetHosts - get host record settings SetHosts - set host record settings

But I think this may be a bit beyond my scripting abilities. (I also suspect there may already be another DNS implementation which is similar and could be used as a baseline, but I haven't found it by browsing the source code)

x-Felix commented 7 years ago

My domains are hosted on namecheap too. But not eligible to use API access although I have spent over $50 in the last two years. https://github.com/Neilpang/acme.sh/issues/527

Neilpang commented 7 years ago

Yes, the api is not free.

jtbr commented 7 years ago

Hmm. I hadn't realized that. That's annoying and seems unnecessary.

Still, if someone wants to implement it, there is a sandbox which is freely available to anyone for testing.

@florid2 According to their FAQ, you should be eligible...

x-Felix commented 7 years ago

@jtbr Yeah, after I submitted a ticket, they approved my request to enable API access. However, I do not see Namecheap API access is quite useful as it requires user to define whitelist IPs who can access API. The whitelist only accepts IP addresses, not the DDNS. Not sure from whom needs to access Namecheap API, Letsencrypt validation servers or the web server requesting SSL certificate? As I am applying certificate for my home nas, it is not easy to modify the Namecheap whitelist everytime.

VWFeature commented 7 years ago

If you use NameCheap, you can specify other DNS. You can use CloudFlare, etc.