Giter VIP home page Giter VIP logo

wedos-hook's Introduction

wedos-hook

wedos-hook is a shell script to integrate the dehydrated ACME client with Wedos DNS servers for dns-01 challenges.

Connect the Wedos JSON WAPI with Let's Encrypt ACME dns-01 challenge via Dehydrated client to get certificate. Easy, using only bash shell and with few external dependecies.

Hook is configured for localy deploying certificates to $BASEDIR/certs, if you want to use your own deploy hook, add WAPI_DEPLOY_CERT_HOOK="path/to/hook.sh" to dehydrated config. You can configure exit_hook as well: WAPI_EXIT_HOOK="path/to/exit_hook.sh"

Requirements

  • Wedos account with configured WAPI (more in Configuration)
  • dehydrated ACME client script
  • jq
  • curl
  • grep
  • dig

Configuration

Login to the wedos Customer administration, open Customer tab and click to WAPI interface. Activate WAPI, setup allowed IP adresses, choose password and save. Preferred protocol has to be JSON !

Download and configure dehydrated per the documentation. And add to the config file following options:

  • CHALLENGETYPE="dns-01"
  • HOOK="${BASEDIR}/wedos-hook.sh"
  • WAPI_LOGIN="email"
  • WAPI_PASS="xxxxxxxxxx"
  • WAPI_URL="https://api.wedos.com/wapi/json" (optional)
  • WAPI_WAIT=600 (optional, default 600)

Download wedos-hook.sh, place it in the same location as dehydrated and make it executable.

That's all, finally you can run dehydrated -c -f /etc/dehydrated/config, add it to the crontab and get Let's Encrypt certificate with dns-01 challenge.

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.