Giter Club home page Giter Club logo

certbot-whm-command's Introduction

certbot DNS challenge hook for managing WHM CDN

Requirement

whmapi1 version

This script will display your WHMAPI version. Please ensure that it is available.

Usage

In order to use this script, follow these simple steps:

  1. Run the following command in /etc/letsencrypt/scripts
cd /etc/letsencrypt/scripts
  1. Clone the project
git clone https://github.com/javadmsd/certbot-whm-command.git
  1. Type cd certbot-whm-command and press enter. You should now be in the certbot-whm-command directory

  2. Type chmod +x authenticator.sh and chmod +x cleanup.sh in the terminal and press enter. This will make the script executable.

  3. Install certbot package

sudo apt update
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
certbot --version
  1. Run the following command
certbot certonly --manual --preferred-challenges dns --server https://acme-v02.api.letsencrypt.org/directory --manual-auth-hook ./authenticator.sh --manual-cleanup-hook ./cleanup.sh -d *.example.com

If you do not receive the following message at the end, continue with the steps

Certbot has set up a scheduled task to automatically renew this certificate in the background.
  1. If Use the command crontab -e to open the cron jobs for renew certificates
crontab -e
  1. Press i on the keyboard to insert a new line.

  2. Type the following line

certbot renew --manual --preferred-challenges dns --server https://acme-v02.api.letsencrypt.org/directory --manual-auth-hook /etc/letsencrypt/scripts/certbot-whm-command/authenticator.sh --manual-cleanup-hook /etc/letsencrypt/scripts/certbot-whm-command/cleanup.sh -d *.example.com >> /etc/letsencrypt/scripts/certbot-whm-command/certbot.renew.log
  1. Press Esc.

  2. Type :wq and press Enter to save the changes.

  3. Now the script is ready to be used.

certbot-whm-command's People

Watchers

Mohammad javad Masoudian 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.