Giter Club home page Giter Club logo

certbot-arvancloud's Introduction

certbot DNS challenge hook for ArvanCloud CDN

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-arvancloud.git
  1. Type cd certbot-arvancloud and press enter. You should now be in the certbot-arvancloud 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. Open the config.sh file, fill the API_KEY with your ArvanCloud API token

  4. Install certbot package

sudo apt update
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
certbot --version
  1. Install jq package
sudo apt-get install jq
  1. Run the following command
certbot certonly --manual --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 --manual-auth-hook /etc/letsencrypt/scripts/certbot-arvancloud/authenticator.sh --manual-cleanup-hook /etc/letsencrypt/scripts/certbot-arvancloud/cleanup.sh -d *.example.com >> /etc/letsencrypt/scripts/certbot-arvancloud/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-arvancloud'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.