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 | |
# Define colors | |
RED=$(tput setaf 1) | |
GREEN=$(tput setaf 2) | |
BLUE=$(tput setaf 4) | |
YELLOW=$(tput setaf 3) | |
RESET=$(tput sgr0) | |
# Function to handle errors |
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 | |
# 기본 설정 | |
OUTPUT_CNF="openssl.cnf" | |
# 기본 값 | |
COUNTRY="US" | |
STATE="California" | |
LOCALITY="San Francisco" | |
ORGANIZATION="Home" |
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 | |
# 기본 값 설정 | |
DAYS=365 | |
OUTPUT_DIR="." | |
# 사용법 안내 함수 | |
usage() { | |
echo "Usage: $(basename $0) [-d days] [-o output_dir]" | |
echo " -d days Number of days the certificate is valid (default: 365)" |