CertBot插件,允许对在DirectAdmin中管理的名称进行ACME DNS-01身份验证。

certbot-dns-directadmin的Python项目详细描述


certbot dns直接管理

允许对DirectAdmin中管理的名称进行acme dns-01身份验证的插件对于为名称由directadmin管理但安装在未由directadmin管理的服务器上的服务自动创建let's encrypt证书(是否通配符)很有用。

如何使用

一。安装

首先,使用pip安装certbot和插件:

pip install certbot certbot-dns-directadmin

2.配置

下载文件credentials.ini.example,并将其重命名为directadmin-credentials.ini。编辑它以设置DirectAdmin URL、用户名和密码。

# The url DirectAdmin url
# include the scheme and the port number (usually 2222)
certbot_dns_directadmin:directadmin_url = https://directadmin.example.com:2222
# The DirectAdmin username
certbot_dns_directadmin:directadmin_username = user

# The DirectAdmin password
certbot_dns_directadmin:directadmin_password = hunter2

三。运行

现在,您可以使用插件运行certbot并提供凭据文件。
例如,要获取证书,例如.com和www.example.com

certbot certonly \
--authenticator certbot-dns-directadmin:directadmin \
--certbot-dns-directadmin:panel-credentials /path/to/directadmin-credentials.ini \
-d example.com \
-d www.example.com

要创建通配符证书*.example.com并将其安装到apache服务器上,必须使用--installer选项指定安装程序插件。 如果apache插件不在系统中,则需要安装它。

pip install certbot-apache
certbot run \
--apache \
--authenticator certbot-dns-directadmin:directadmin \
--installer apache \
--certbot-dns-directadmin:directadmin-credentials /path/to/directadmin-credentials.ini \
-d '*.example.com'

certbot文档还提供了一些有关组合authenticator和安装程序插件的附加信息:https://certbot.eff.org/docs/using.html#getting-certificates-and-choosing-plugins

码头工人

为了您的方便,我们提供了一个基于certbot/certbot的Docker图像:

docker run \
-v /path/to/credentials.ini:/tmp/credentials.ini \
cybercinch/certbot-dns-directadmin \
certonly \
--authenticator certbot-dns-directadmin:directadmin \
--certbot-dns-directadmin:directadmin-credentials /tmp/directadmin-credentials.ini \
-d example.com \
-d www.example.com

附加文档

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
javajaxb在嵌套节点中生成xmlns:xsi声明   java重定向到youtube以上传jsp上可用的视频   java提高了JVM和ANT的性能   java如何将返回的JSON数据放在HTML表单中   java如何发送XWWWFORMURLENCODE在重新授权   java为什么jvm XX:+EliminateAllocations失败   堆移除和重建方法?(爪哇)   Stanford NPL in Spark(Scala)应用程序运行到Java堆空间(Java.lang.OutOfMemoryError)   调试java中打开/关闭println的任何方式(详细模式)   java IntelliJ在鼠标悬停时显示JavaDocs工具提示   Olingo Odata Java中的自动扩展选项   json将postgres文本arry转换为java列表?   oop需要帮助推断Java代码   复选框的java添加操作侦听器AbstractTableModel   java如何从公共静态void main(String[]args)传递值   java从数据库中获取大值   java Processing 2.0电影从jar运行时无法打开电影文件   java如何在不使用应用程序的情况下刷新活动?   尝试将JSON解析为ListView时的Android:JSON parse:null对象引用