certs-manager

This script provides an easy way to generate a Certificate Authority (CA) certificate, create Certificate Signing Requests (CSR), and sign certificates using your CA.


screenshot

cert_manager.sh is a Bash script designed to simplify the process of creating, managing, and signing SSL/TLS certificates. This script provides an easy way to generate a Certificate Authority (CA) certificate, create Certificate Signing Requests (CSR), and sign certificates using your CA.

Features

Prerequisites

To use this script, you need:

Usage

  1. Download the script:

    wget https://path_to_your_script/cert_manager.sh
    

    Or clone the repository:

    git clone https://github.com/jturazzi/certs-manager.git
    
  2. Make the script executable:

    chmod +x cert_manager.sh
    
  3. Run the script:

    ./cert_manager.sh
    

    You will be prompted to choose the action you want to perform via a menu.

  1. Create a CA Certificate (10 years):
    • Enter a directory name for storing the CA certificate and a custom name for the CA.
    • The script will generate a new CA certificate and save it in the specified directory.
  2. Generate and Sign a Certificate (1 year):
    • Enter the CA directory name, the directory name for the CSR, a custom name for the CSR, and optionally, a list of domain names and IP addresses.
    • The script will generate a CSR, sign it using the specified CA, and create a new certificate in the indicated directory.
  3. Quit:
    • Exit the script.

Example

Notes

License

This project is licensed under the MIT License - see the LICENSE file for details.