This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: | |
# | |
# ssl_setup [--self] <name> <csr_config> | |
# | |
# This script is used to generate key and CSR for use HTTPS in Nginx. | |
# | |
# --self Generate self-signed certificate in addition to key and CSR. | |
# name Output files will be named as <name>.key and <name>.csr. |