Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

certbot找不到--certbot-dns-aliyun:dns-aliyun-credentials参数 #9

Closed
Power-tile opened this issue Jan 27, 2021 · 16 comments
Closed

Comments

@Power-tile
Copy link

Power-tile commented Jan 27, 2021

certbot certonly -a certbot-dns-aliyun:dns-aliyun \
    --certbot-dns-aliyun:dns-aliyun-credentials /path/to/credentials.ini \
    -d example.com \
    -d "*.example.com"

运行后报错:找不到该参数
image

@tengattack
Copy link
Owner

是不是包没有安装正确,certbot 会启动 venv 吗

@Power-tile
Copy link
Author

我没有使用venv安装certbot-dns-aliyun 是直接pip install certbot-dns-aliyun

@tengattack
Copy link
Owner

certbot 也是 pip 一起安装的吗?certbot 现在是啥版本呢可以看看吗

@Power-tile
Copy link
Author

啊 certbot是用官方推荐的snapd装的 版本号1.1.0

@tengattack
Copy link
Owner

snapd 装的啊,是不是走的不是系统 pip 安装的目录,我稍晚看看~

@Power-tile
Copy link
Author

ok thanks
我把certbot + snapd全部卸载了重新用pip装了一遍 显示装在/usr/local/lib/python3.6/dist-packages/certbot目录里 但是这个文件夹下只有一堆.py文件 没有certbot可执行文件没法直接certbot --version

@tengattack
Copy link
Owner

是不是得看下安装到哪里去了

@Power-tile
Copy link
Author

应该就是这个地方吧...? 重新运行了一遍pip install certbot告诉我的路径就在这里
image
而且pip安装的应该是可以直接import的module...? 所以没有可执行文件?

@tengattack
Copy link
Owner

这样,是否考虑用系统的包管理安装,或者使用 certbot-auto 的形式?

@Power-tile
Copy link
Author

我屈服了hhh 我用venv装 就会在./venv/bin/下面得到certbot的可执行文件 就可以运行了
运行过程没啥问题 询问了我的邮箱、同意条款、同意他们给我发信息,我分别填了邮箱,Y,N

但是返回的时候报了一个exception:
Encountered exception during recovery: certbot.errors.PluginError: Unable to determine zone identifier for <我的域名>.com using zone names: ['<我的域名>.com', 'com']
Unable to determine zone identifier for <我的域名>.com using zone names: ['<我的域名>.com', 'com']

我个人感觉这可能和我的域名是a-b.com的格式有关...? 我在执行certbot的时候 -d "my-domain.com" -d "*.my-domain.com"的时候都加了双引号 而且运行到后面返回的时候才出错的 这是不是plugin在域名字符串分离的时候的问题呀(

@tengattack
Copy link
Owner

plugin 里分离应该不会有这个问题,晚点我一起看下使用 a-b 的形式的时候,这块会不会有什么问题

@Power-tile
Copy link
Author

ok thanks

@Power-tile
Copy link
Author

@tengattack 我简单看了一下 这个错误应该是这一行报出来的 但是我不确定怎么对这个项目做调试/怎么搭调试环境 请问你可以试试在这里打个断点调试一下嘛 谢谢

@tengattack
Copy link
Owner

tengattack commented Feb 7, 2021

@tengattack 我简单看了一下 这个错误应该是这一行报出来的 但是我不确定怎么对这个项目做调试/怎么搭调试环境 请问你可以试试在这里打个断点调试一下嘛 谢谢

@Power-tile 您方便看下你创建的 RAM 子账号里有相关权限吗,目前的逻辑是搜索您传入的域名,应该总是可以找到才对

@Power-tile
Copy link
Author

!啊 它好了 我的RAM子账号原先属于的工作组没有AliyunDNSFullAccess权限,只有该帐号自己有,我把工作组的权限加上就好了

@tengattack
Copy link
Owner

snap 上也发布了:

sudo snap install certbot-dns-aliyun
sudo snap set certbot trust-plugin-with-root=ok
sudo snap connect certbot:plugin certbot-dns-aliyun
/snap/bin/certbot plugins

plugins 看是有了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants