Menu did not show up when not submitting a domain
This commit is contained in:
parent
967a8247f2
commit
385a96a23b
30
certgen.sh
30
certgen.sh
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################
|
########################################
|
||||||
# Author: F. Bischof (frank@meer-web.nl)
|
# Author: F. Bischof (frank@meer-web.nl)
|
||||||
# Version: 1.4.1
|
# Version: 1.4.2
|
||||||
# Date: 12-01-2022
|
# Date: 12-01-2022
|
||||||
########################################
|
########################################
|
||||||
ENCRYPTION="sha256"
|
ENCRYPTION="sha256"
|
||||||
@ -115,22 +115,22 @@ if [ "$1" == '' ]
|
|||||||
then
|
then
|
||||||
echo -en "Domain: "
|
echo -en "Domain: "
|
||||||
read DOMAIN
|
read DOMAIN
|
||||||
else
|
|
||||||
DOMAIN=$1
|
|
||||||
CONFIG_FILE=$2
|
|
||||||
# Show options menu
|
|
||||||
echo "1. Create self signed certificate"
|
|
||||||
echo "2. Create CSR";
|
|
||||||
echo "3. Create PFX file"
|
|
||||||
echo "4. Extract PFX to CRT/KEY"
|
|
||||||
echo "5. Create CA-Bundle and PEM files"
|
|
||||||
echo "6. Remove password from KEY file"
|
|
||||||
echo "7. Decode CSR"
|
|
||||||
echo "8. Decode CRT"
|
|
||||||
echo "9. Match CRT/KEY"
|
|
||||||
echo -en "Option: "; read OPTION
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
DOMAIN=$1
|
||||||
|
CONFIG_FILE=$2
|
||||||
|
# Show options menu
|
||||||
|
echo "1. Create self signed certificate"
|
||||||
|
echo "2. Create CSR";
|
||||||
|
echo "3. Create PFX file"
|
||||||
|
echo "4. Extract PFX to CRT/KEY"
|
||||||
|
echo "5. Create CA-Bundle and PEM files"
|
||||||
|
echo "6. Remove password from KEY file"
|
||||||
|
echo "7. Decode CSR"
|
||||||
|
echo "8. Decode CRT"
|
||||||
|
echo "9. Match CRT/KEY"
|
||||||
|
echo -en "Option: "; read OPTION
|
||||||
|
|
||||||
case ${OPTION} in
|
case ${OPTION} in
|
||||||
1) create_ssc ;;
|
1) create_ssc ;;
|
||||||
2) create_csr ;;
|
2) create_csr ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user