Code Monkey home page Code Monkey logo

certbot-dns-ovh's Introduction

Certbot-dns-ovh

Docker container for creating and renewing (wildcard) certificates on OVH DNS

Deprecated !

As of Certbot 0.26 an OVH plugin has been included. See official changelog on certbot/certbot.

Building container

To build the container simply run the following command:

docker build -t certbot-dns-ovh .

An official image is also available on docker's hub:

docker pull weaverize/certbot-dns-ovh

Create OVH API Token

Go to https://api.ovh.com/createToken/ and create an application token with the following rights:

  • For /domain verbs GET, POST, PUT and DELETE (basically all)
  • For /domain/* verbs GET, POST, PUT and DELETE (basically all)

You should use an OVH account that has the corresponding rights, obviously.

Running container

The certificate creation and renewal is fully automatic.

You can provide the OVH API credentials using an ovh.conf file, as describe in https://github.com/ovh/python-ovh#2-configure-your-application. You can also use environment variables instead like in the following example:

docker run -it --rm \
	-v $PWD/certs:/etc/letsencrypt \
	-v $PWD/lib:/var/lib/letsencrypt \
	-e OVH_ENDPOINT=<replace by endpoint> \
	-e OVH_APPLICATION_KEY=<replace by key> \
	-e OVH_APPLICATION_SECRET=<replace by secret> \
	-e OVH_CONSUMER_KEY=<replace by consumer key> \
	weaverize/certbot-dns-ovh \
		certonly \
		--server https://acme-v02.api.letsencrypt.org/directory \
		--preferred-challenges dns-01 \
		-a certbot-dns-ovh:dns-ovh \
		--email <[email protected]> \
		--agree-tos \
		--no-eff-email \
		-d "<yourdomain>"
		-d "<yourotherdomain>"

To be able to create wildcard certificates you have to use the following endpoint (like in the example above):

https://acme-v02.api.letsencrypt.org/directory

Credit

Inspired by mcdado/certbot-dns-ovh and antoiner77/letsencrypt.sh-ovh

Copyright (c) 2018, Weaverize SAS. All rights reserved. Contact: [email protected].

certbot-dns-ovh's People

Contributors

auguster avatar hedii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.