nakanokurenai / certbot-dns-conoha

ConoHa DNS Authenticator plugin for certbot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

certbot-dns-conoha PyPI version

Get certificates by certbot with ConoHa DNS API v1

Install

pip install certbot-dns-conoha

Usage

certbot -a certbot-dns-conoha:dns-conoha certonly -d example.com --certbot-dns-conoha:dns-conoha-credentials credentials.ini

How to generate credentials.ini

curl -X POST -H 'Accept: application/json' -d '{"auth": {"passwordCredentials": {"username": "<username>", "password": "<password>"}, "tenantId": "<tenantId>"}}' https://identity.tyo1.conoha.io/v2.0/tokens -o tokens.json
cat tokens.json | jq '.access.token.id' | xargs -I% echo 'certbot_dns_conoha:dns_conoha_auth_token = %' >> credentials.ini
cat tokens.json | jq '.access.serviceCatalog | map(select(.type == "dns")) | .[0].endpoints| map(select(.region == "tyo1")) | .[0] | .publicURL' | xargs -I% echo "certbot_dns_conoha:dns_conoha_dns_endpoint = %" >> credentials.ini

About

ConoHa DNS Authenticator plugin for certbot

License:Apache License 2.0


Languages

Language:Python 100.0%