This plugin automates the process of completing a dns-01
challenge by creating, and subsequently removing, TXT records using the (XML-RPC-based) namecheap.com API.
Namecheap has certain requirements for activation to prevent system abuse. In order to have API enabled for your account, you should meet one of the following requirements:
- have at least 20 domains under your account;
- have at least $50 on your account balance;
- have at least $50 spent within the last 2 years.
Use of this plugin requires a configuration file containing Namecheap API credentials, obtained from your Namecheap account's API Managenment page.
# Namecheap API credentials used by Certbot
dns_namecheap_username = User
dns_namecheap_api_key = Token
The path to this file can be provided by using the --dns-namecheap-credentials
command-line argument.
- If you know what you're doing install the plugin into the same python environment like
certbot
. In any other case follow theDocker
approach above:
git clone https://github.com/prowald/certbot-dns-namecheap.git
pip install certbot-dns-namecheap/
- Check that
certbot
discovers the plugin:
certbot plugins
- Now run the command:
certbot certonly \
-a certbot-dns-namecheap:dns-namecheap \
--dns-namecheap-credentials ~/.secrets/certbot/namecheap.ini \
--agree-tos \
-email "your@mail.com" \
-d example.com \
--test-cert
- After a successful run, remove the last parameter
--test-cert
which enabled staging server and run again.