Generate CSR for LightBeam
Step-by-Step Guide
Here is a script that combines the generation of the private key and CSR using the configuration file:
Usage
1. Save the script to a file, for example, `generate_key_and_csr_with_san.sh
`.
2. Make the script executable:
chmod +x generate_key_and_csr_with_san.sh
3. Run the script:
./generate_key_and_csr_with_san.sh
This script will generate a private key and a CSR with the `subjectAltName` set to `abc@def.com`. Adjust the values in the configuration file section of the script as needed for your specific requirements.
Configuration File Sections:
[ req ]:
Main settings for the request.default_bits:
Key size.default_md:
Message digest algorithm.prompt:
Whether to prompt for details.default_keyfile:
Default private key file.distinguished_name:
Section for distinguished name.req_extensions:
Section for request extensions.
[ req_distinguished_name ]:
Details for the distinguished name.[ req_ext ]:
Extensions to add to the request.[ alt_names ]:
Subject alternative names.
Last updated