summaryrefslogtreecommitdiff
path: root/client_maker.sh
diff options
context:
space:
mode:
authorErg <uinarf@autistici.org>2024-11-27 17:45:03 +0100
committerErg <uinarf@autistici.org>2024-11-27 17:45:03 +0100
commit2fb55882d733d8c1e28a49153ef6c3449ebe7998 (patch)
tree5487847741f949a95b79a2f9f2046866c1dc9358 /client_maker.sh
parent6cb8d8a2a42d99e6440a2c0c74c08eca44c2d2df (diff)
downloadPico-master.tar.gz
Pico-master.tar.bz2
Pico-master.zip
RestructurisationHEADmaster
Diffstat (limited to 'client_maker.sh')
-rwxr-xr-xclient_maker.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/client_maker.sh b/client_maker.sh
index 983bf1a..67dfa98 100755
--- a/client_maker.sh
+++ b/client_maker.sh
@@ -6,7 +6,7 @@
# The script WILL NOT DELETE ANYTHING - it just renames any certs dir that it finds
# You will probably need to change this for your system
-mosquitto_dir="/etc/mosquitto"
+mosquitto_dir="/home/erg/cert_test"
# Note: Pico W can use EC or RSA keys only, not EC25519, and Tasmota can only use 2048 bit RSA keys.
@@ -47,7 +47,7 @@ fi
algorithm="-algorithm ${key_type}"
# Set the specific pkeyopt for the chosen algorithm (BLANK for ED25519)
-if [ "${key_type}" == "EC" ]; then
+if [ "${key_type}" == "EC" ]; then
echo 'Create EC Key'
pkeyopt="-pkeyopt ec_paramgen_curve:${curve}"
elif [ "${key_type}" == "RSA" ]; then
@@ -56,7 +56,7 @@ elif [ "${key_type}" == "RSA" ]; then
elif [ "${key_type}" == "ED25519" ]; then
echo 'Create ED25519 Key'
pkeyopt=""
-else
+else
echo 'Key Type not found'
fi