Code Monkey home page Code Monkey logo

cpaneletscript's Introduction

LetsEncrypt Certbot alternative for CPanel

This script automates the process of installing and renewing LetsEncrypt certificates on a CPanel shared host without WHM or the LetsEncrypt plugin installed.

Think of a Certbot alternative capable of running on a shared host restricted environment.

Description

First of all, Yes!, you can have a free SSL certificate installed on your CPanel hosted shared server!

The process was tedious, but now is one cron job away, for unlimited certification freedom.

It fetches and installs the certificates for the configured domains(s) or subdomain(s).

LetsEncrypt v2 protocol supported.

Installation

Clone this repo, and run composer install then, just copy the folder to your server ex: ./.sslscript, I advise not to put it inside the public directory, although all sensitive folders are protected with .htaccess rules.

Edit the config.php file or create a new file and name it like config.mydomain.php. This way you can have multiple configurations.

The options are self explanatory.

Usage

Go to the cron job tab on your CPanel and add the command to run every week.

php -q /home/cpanelusername/.lescript/index.php config=mydomain

Or call it from a browser

mydomain.com/ressl.php?config=mydomain

Requirements

  • PHP 5.4 and up
  • OpenSSL extension
  • Curl extension

leclient: is standalone part of LEClient

License

CPaneLeScript is released under the MIT Licence. See the bundled LICENSE file for details.

cpaneletscript's People

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.