tomfun / lexicon-dehydrated-namecheap

Docker container to automate letsencrypt certificate serve for namecheap domains

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lexicon-dehydrated-namecheap

Based on:

Why

Some providers (like Route53 and TransIP) require additional dependencies. You can install provider specific dependencies separately

Also a small tuning inside and "sugar" outside

What

Container to run certificate obtaining preconfigured to v2 endpoints and namecheap. But technically you can use any provider. Just set env variables PROVIDER and auth related.

Requirements

  • docker
  • namecheap API token & username or other providers credentials

Usage

Create 2 files, 1 of them bash for easy use run.sh:

#!/usr/bin/env bash
set -e

docker run --rm -it \
    -v ${PWD}:/data \
	-e EMAIL=user+test-acc-1@example.com \
	-e LEXICON_NAMECHEAP_USERNAME=example \
    -e LEXICON_NAMECHEAP_TOKEN=201927quien5Afei2vaem8choh0ooFah \
	tomfun/lexicon-dehydrated-namecheap:latest \
	--help

And domains.txt with domains:

*.example.com
www.tomfun.co demo.tomfun.co

First time

Create account and accept terms

./run.sh /srv/dehydrated/dehydrated --register --accept-terms
# Or
# ./test-run.sh /srv/dehydrated/dehydrated --register --accept-terms

See configs

Create account and accept terms

./run.sh /srv/dehydrated/dehydrated -e
# Or
# ./test-run.sh /srv/dehydrated/dehydrated -e

Staging mode

STAGING=true means enable staging endpoint for CERTIFICATES, but not for namecheap Create bash file for easy use like run.sh but with -e STAGING=true \ in test-run.sh and use it

Local build

docker build https://github.com/tomfun/lexicon-dehydrated-namecheap.git  -t tomfun/lexicon-dehydrated-namecheap:local

About

Docker container to automate letsencrypt certificate serve for namecheap domains


Languages

Language:Shell 75.1%Language:Dockerfile 24.9%