Giter Site home page Giter Site logo

alokemajumder / nginx-ssl-automation Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 14 KB

This is a simple shell script for automating the installation and renewal of Let's Encrypt SSL certificates on Linux servers using Nginx.

License: MIT License

Shell 100.00%
certbot certificate-management devops https letsencrypt nginx nginx-configuration ssl ssl-certificate ssl-certificates

nginx-ssl-automation's Introduction

nginx-ssl-automation

GitHub stars GitHub forks GitHub issues GitHub pull requests GitHub GitHub release (latest by date) GitHub contributors GitHub last commit GitHub top language Code size Open Source Love

This repository contains a script for automating the installation and renewal of Let's Encrypt SSL certificates on Linux servers using Nginx. It simplifies the setup of SSL on Nginx by handling all necessary installations, configurations, and renewals automatically.

Features

  • Automated SSL Certificate Installation: Sets up SSL certificates from Let's Encrypt for your domain hosted on Nginx.
  • Domain Resolution Check: Ensures your domain resolves correctly before installation to prevent errors.
  • Backup Option: Offers an option to backup existing Nginx configurations before making changes.
  • Automated Renewals: Configures cron jobs to handle certificate renewals automatically.
  • Cross-Distro Support: Supports both Debian and Fedora-based Linux distributions.

Prerequisites

Before running this script, ensure the following:

  • You are using a Linux server running either a Debian-based (like Ubuntu or Debian itself) or Fedora-based (like Fedora or CentOS) distribution.
  • You have root or sudo privileges on the server.
  • Nginx is installed and running.
  • DNS utilities are available (dnsutils for Debian-based systems or bind-utils for Fedora-based systems).

Installation

To set up the SSL automation script, follow these steps:

Clone the repository

Change to the directory

cd nginx-ssl-automation

Make the script executable

chmod +x install_ssl.sh

Run the script with root privileges

sudo ./install_ssl.sh

Usage

Running the script will prompt you for several inputs:

  • Domain Name: The fully qualified domain name (FQDN) for which you want to install the SSL certificate.
  • Email Address: Contact email address for urgent renewal and security notices from Let's Encrypt.
  • Backup: Whether to backup existing Nginx configuration files before making changes.

Follow the interactive prompts to complete the installation and configuration of your SSL certificate.

Contributing

Contributions to enhance this script are welcome! Please fork the repository and submit pull requests with your proposed changes.

License

This project is released under the MIT License.

Support

For support, feature requests, or bug reporting, please open an issue.

Disclaimer

This script is provided "as is", without warranty of any kind. Use it at your own risk. Always backup your data before making system changes.

nginx-ssl-automation's People

Contributors

alokemajumder avatar

Stargazers

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