Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

nakanokurenai/certbot-dns-conoha

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages