Git Product home page Git Product logo

r1soft-letsencrypt-auto's Introduction

LetsEncryptForR1Soft

Script that automatically setups a Let's Encrypt certificate for R1Soft, and handles renewal.

Here is what the script does :

  • Updates the following packages : nss nss-util nss-sysinit nss-tools wget curl ca-certificates openssl
  • Downloads Certbot (if not already done)
  • Creates a keystore for R1Soft cdp
  • Creates a Let's Encrypt certificate through Certbot
  • Imports the certificate into R1Soft keystore

Just wget the script, change execution rights and launch it :

wget -N https://raw.githubusercontent.com/amitsdalal/r1soft-letsencrypt-auto/master/SSLR1Soft.sh ; chmod +x SSLR1Soft.sh
./SSLR1Soft.sh

You can add a cron every month to renew your certificate :

0 5 1 * * /root/SSLR1Soft.sh

You can also clone this git repo, and create a cron task to get the script updates :

mkdir -p /scripts/r1soft
cd !$
git clone https://github.com/amitsdalal/r1soft-letsencrypt-auto.git

0 5 1 * * /scripts/r1soft/r1soft-letsencrypt-auto/SSLR1Soft.sh
0 0 1 * * cd /scripts/r1soft/r1soft-letsencrypt-auto ; git pull

You just have to make sure your web ports are not filtered, and nothing is running on port 80 (or you'll have to stop it before launching the script).

-- Tested and created on CentOS 7 and CentOS 6.

r1soft-letsencrypt-auto's People

Contributors

amitsdalal avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Forkers

theboroer

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.