sekkiat / Auto-Generating-SSL-Certificate

Designated for Splunk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SSL Certificate Generation

Tired of generating the certificate one by one?
Here the solution for you!
Just use a script to generate the certificate and help you do the manual job.
It is specially designed for Splunk Web and Forwarder encryption. However, if it can fit into your apps, you are welcome to use the script.

All certificates will encrypt with AES256 with SHA256.

Steps

  1. Create a CA.
  2. Generate Web and Server Certificate as many as you want.

or

  1. Specify the hostname list using -p options to generate the Web and Server Certificate.

Usage: Generate_SSL.sh


-t [1] CA, [2] Web, [3] Server.

❗ REQUIRED to define what type of certificate needs to generate.

    [2] password certificate will be removed.
    [3] password certificate will remain.

-n How many SSL certificates you need to generate.

❗ REQUIRED to generate a web and server certificate if you do not specify the hostname list.

-p <hostname_list> Generate the Certificate based on the hostname in the file.

❗ REQUIRED if you want to generate the certificates based on the hostname list.

-zc <no_ca_cert> No required to define CA Certificate

Certificate Parameters Here - REQUIRED TO DEFINE ALL THE PARAMETERS BELOW

-o <organization_name> Organization Name

-c <common_name> Common Name

-e <email_address> Email Address

-u <organization_unit> Organization Unit

-r Country

-s State

-i City

About

Designated for Splunk

License:MIT License


Languages

Language:Shell 100.0%