Git Product home page Git Product logo

letsencrypt-whm's Introduction

What is this?

This is respository for shell script to automate installation Let's Encrypt SSL certificates generated by certbot-auto into WHM-based Linux server.

Motivation

Latest WHM adds Let's Encrypt SSL certificate plugin, however CPanel dropped support for Centos 6 32-bit system.

This is for WHM user who stuck on WHM version < 58 but want to use Let's Encrypt SSL certificates automated domain validation tools.

Requirement

Installation

Login to SSH and clone this repository.

Usage

Install Certificates

# ./letsencrypt.whm.ssl.install.sh [working directory] [domain name]

[working directory] is web root directory of [domain name] to store temporary http challenge for domain validation. [domain name] is domain name to generate certificate.

# ./letsencrypt.whm.ssl.install.sh /home/userxxx/public_html example.com

If you install certbot-auto in directory that is not in PATH environment variable then you can specify absolute path using CERTBOT_EXEC variable. For example

# CERTBOT_EXEC=/usr/local/certbot/certbot-auto ./letsencrypt.whm.ssl.install.sh /home/userxxx/public_html example.com

Renew Certificates

# ./letsencrypt.whm.renew.sh

If you install certbot-auto in directory that is not in PATH environment variable then you can specify absolute path using CERTBOT_EXEC variable.

# CERTBOT_EXEC=/path/to/certbot-auto ./letsencrypt.whm.renew.sh

For example

# CERTBOT_EXEC=/usr/local/letsencrypt/certbot-auto ./letsencrypt.whm.renew.sh

letsencrypt.wh.renew.sh is script that you need to run periodically with cron to avoid issue with expired SSL certificates. This script calls certbot-auto renew command. It is save to call this periodically as explained here.

Unlike certonly, renew acts on multiple certificates and always takes into account whether each one is near expiry. Because of this, renew is suitable (and designed) for automated use, to allow your system to automatically renew each certificate when appropriate. Since renew only renews certificates that are near expiry it can be run as frequently as you want - since it will usually take no action.

Install SSL Certificate manually

If you already have Lets Encrypt SSL certificate generated, you can manually install the certificate without generating new certificate.

whm.install.cert.sh installs existing Lets Encrypt SSL certificate for a domain name.

# ./whm.install.cert.sh [domain name]

Zamrony P. Juhara

letsencrypt-whm's People

Contributors

zamronidomino avatar zamronypj avatar

Stargazers

 avatar  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.