Skip to main content

certbot 客户端的 certbot-httpreq 插件

项目描述

certbot-httpreq 项目

PyPI 版本 PyPI 版本 shields.io 文件状态

certbot-httpreq 是一个免费的开源软件,我们开发它以通过 HTTP 协议自定义和发送身份验证器和安装程序 certbot 请求。

目录

  1. 安装
  2. 用法
  3. 配置

安装

pip install certbot-httpreq

用法

certbot \
  --agree-tos \
  --text \
  -a certbot-httpreq:auth \
  -i certbot-httpreq:installer \
  --certbot-httpreq:auth-config /etc/letsencrypt/certbot-httpreq.yml \ # not required
  --certbot-httpreq:installer-config /etc/letsencrypt/certbot-httpreq.yml \ # not required
  run

配置文件必须放在 /etc/letsencrypt/certbot-httpreq.yml 或使用参数 --certbot-httpreq:auth-config 和 --certbot-httpreq:installer-config 指定。

配置

您可以为执行和清理阶段自定义身份验证器 HTTP 请求,也可以为部署阶段自定义安装程序 HTTP 请求。

# authenticator
perform:
  ### perform HTTP URI ###
  uri: http://localhost
  ### perform HTTP path ###
  path: /
  ### perform HTTP method: PUT or POST ###
  method: PUT
  ### perform HTTP format: json or form-urlencoded ###
  format: json
  ### parameter name in HTTP query string for challenge string ###
  ### default: HTTP path e.g.: http://localhost/HGr8U1IeTW4kY_Z6UIyaakzOkyQgPr_7ArlLgtZE8SX ###
  param_challenge: ~
  ### parameter name in HTTP body for validation string
  ### default: HTTP json payload e.g.: "gfj9Xq...Rg85nM" ###
  param_validation: ~
  ### perform HTTP custom headers ###
  headers: {}
  ### perform HTTP connection timeout ###
  timeout: ~
  ### perform HTTP SSL verify ###
  verify: ~
cleanup:
  ### cleanup HTTP uri ###
  uri: http://localhost
  ### cleanup HTTP path ###
  path: /
  ### cleanup HTTP method: DELETE, PUT or POST ###
  method: DELETE
  ### cleanup HTTP format: json or form-urlencoded ###
  format: json
  ### parameter name in HTTP query string for challenge string ###
  ### default: HTTP path e.g.: http://localhost/HGr8U1IeTW4kY_Z6UIyaakzOkyQgPr_7ArlLgtZE8SX ###
  param_challenge: ~
  ### cleanup HTTP custom headers ###
  headers: {}
  ### cleanup HTTP connection timeout ###
  timeout: ~
  ### cleanup HTTP SSL verify ###
  verify: ~

# installer
deploy:
  ### deploy HTTP URI ###
  uri: http://localhost
  ### deploy HTTP path ###
  path: /
  ### deploy HTTP method: POST or PUT or PATCH ###
  method: POST
  ### deploy HTTP format: json or form-urlencoded ###
  ### e.g.: HTTP json payload: {"domain":"...","cert":"...","key":"...","chain":"..."} ###
  format: json
  ### deploy HTTP custom headers ###
  headers: {}
  ### deploy HTTP connection timeout ###
  timeout: ~
  ### deploy HTTP SSL verify ###
  verify: ~

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

内置发行版

certbot_httpreq-0.0.17-py3-none-any.whl (19.6 kB 查看哈希

已上传 py3

certbot_httpreq-0.0.17-py2-none-any.whl (19.6 kB 查看哈希

已上传 py2