interbrite / letsencrypt-vesta

Automate Let's Encrypt Certificate Installation for VestaCP
Other
217 stars 64 forks source link

can't work if NS server is 3rd party DNSPOD NS server #60

Open joomlagate opened 6 years ago

joomlagate commented 6 years ago

There is a website https://www.dnspod.cn/ which offers free NS Server service. I had set my domains to use DNSPOD NS servers instead the one provided by the domain registration company.

Then, when I tried to use letsencrypt-vesta command line to apply new SSL certificate for my domain, I got errors, saying:

Failed authorization procedure. ...

Of course this issue can be solved by switch my NS Server to the one offered by domain registration company, but I think maybe we can improve letsencrypt-vesta script to solve this.

There were already some 3rd party scripts which can use DNSPOD NS Server to apply LE Certificate, those scripts uses some special API code to solve this, the code can be copied from user's DNSPOD account page, it is free.

So, my idea is: maybe the author of letsencrypt-vesta (or someone else) can transplant such a trick to letsencrypt-vesta to solve this issue.

Please take a look at following scripts to know what kind of API Code trick had been used:

https://github.com/xdtianyu/scripts/tree/master/le-dns

https://github.com/YJBeetle/letsencrypt-dnspod

https://www.v2ex.com/t/255778

If you search "lets encrypt dnspod" on Google you will get more tricks to solve this issue without modify the NS Server.

Now I hope this letsencrypt-vesta tool can also work with DNSPOD smoothly.

Thank you.