Git Product home page Git Product logo

domeneshop_certbot's Introduction

Domeneshop Certbot DNS Authentication Script

This Python script automates the process of setting up DNS authentication for SSL certificate renewal using Certbot. It integrates with the Domeneshop API to manage DNS records for the specified domain.

Features

  • Automatically creates or updates DNS TXT records required for Certbot DNS authentication.
  • Integrates with Domeneshop API for DNS management.

Prerequisites

Before using this script, ensure you have the following:

  • Python 3 installed on your system.
  • Certbot installed and configured for DNS authentication.
  • Access to the Domeneshop API with necessary permissions.

Installation

  1. Clone or download the repository to your local machine.

  2. Ensure you have the required Python dependencies installed:

    • Python 3
    • time library installed
    • os library installed
    • requests library installed
    • json library installed

Set up API credentials for Domeneshop:

  1. Obtain an API token and secret from Domeneshop: https://domene.shop/admin?view=api
  2. For security is is recommended to set API credentials as enviroment variables DOMENESHOP_API_TOKEN and DOMENESHOP_API_SECRET.

Configuration

Modify the script variables according to your domain setup:

  • ROOT_DOMAIN: The root domain for which the SSL certificate is being renewed.
  • SUBDOMAIN: The subdomain used for Certbot DNS authentication.
  • TTL: Time-to-live for DNS records (in seconds).

Usage

Make sure the script (domeneshop_certbot.py) has execute permissions:

chmod +x domeneshop_certbot.py

Run the script integrate with Certbot:

sudo certbot certonly --manual --preferred-challenges dns --manual-auth-hook /path/to/domeneshop_certbot.py -d subdomain.domain

domeneshop_certbot's People

Contributors

royborgen avatar

Watchers

 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.