Git Product home page Git Product logo

certbot-auth-dnspod's Introduction

certbot-auth-dnspod's People

Contributors

al-one avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

certbot-auth-dnspod's Issues

首次申请通配符域名时会执行2次脚本导致失败

使用时发现申请通配符域名(如test.com和*.test.com)会导致certbot执行2次脚本,_acme_challenge记录只有第二次(最后一次)的内容导致验证失败,但是如果再重新运行一次相同的指令,certbot就只会执行一次脚本,成功申请证书,原因不明

token中需要包含id

image

务必注意上图信息中的 ID 和 Token,需要用这两个字段来组合成一个完整的 Token,组合方式为:”ID,Token”(用英文半角逗号分割),比如说本示例中,完整的 Token 为:13490,6b5976c68aba5b14a0558b77c17c3932 。得到完整的 Token 之后,调用方式如下
curl http://dnsapi.cn/Domain.List -d “login_token=13490,6b5976c68aba5b14a0558b77c17c3932&format=json”

有试过,Python 3.6.8,我这里调用脚本后,不能更新域名 txt 记录

日志中,记录的部分:
To fix these errors, please make sure that your domain name was entered correctly and the DNS A/AAAA record(s) for that
domain contain(s) the right IP address.
2021-01-21 18:35:02,843:DEBUG:certbot._internal.error_handler:Encountered exception:
Traceback (most recent call last):
File "/opt/eff.org/certbot/venv/lib64/python3.6/site-packages/certbot/_internal/auth_handler.py", line 91, in handle_authorizations
self._poll_authorizations(authzrs, max_retries, best_effort)
File "/opt/eff.org/certbot/venv/lib64/python3.6/site-packages/certbot/_internal/auth_handler.py", line 180, in _poll_authorizations
raise errors.AuthorizationError('Some challenges have failed.')
certbot.errors.AuthorizationError: Some challenges have failed.

1、Python 3.6.8
2、SSL,使用的是泛解析(多个不同名称的域名使用同一证书,以前是可以的)
3、certbot-auth-dnspod.sh 脚本文件中,我将原来的 python,改为了 python3。
dsnpod 的 token是正确的,我专门使用官方的接口示例调试过。

谢谢!

泛域名是不是不支持

针对泛域名如这参数: -d laravel.run -d .laravel.run
这样,dns增加txt, 它只会创建一条_acme-challenge记录。
并另一条报错。
certbot已经对laravel.run 及
.laravel.run产生两组_acme-challenge记录了。
然而真实记录下来只有一条。
合理情况不是这两条记录都创建吗

Domain name invalid, please input tld domain

Output from manual-auth-hook command certbot-auth-dnspod.sh:
CERTBOT_DOMAIN: ccc.u.abc.com
DOMAIN:         abc.com
VALIDATION:     VQ16ytRk-id2e876Qa5YFli5kFNpRbRptek8fgN6ajk
RECORDS:        
RECORD_ID:      Domain name invalid, please input tld domain

出这个错误,请教如何弄?

foo.com.cn 域名正则表达式

对于foo.com.cn这样的域名正则表达式匹配可能有点问题,$(expr match "$CERTBOT_DOMAIN" '.*\.\(.*\..*\)') 只会匹配出 com.cn

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.