diff options
author | Erg <uinarf@autistici.org> | 2024-11-27 17:45:03 +0100 |
---|---|---|
committer | Erg <uinarf@autistici.org> | 2024-11-27 17:45:03 +0100 |
commit | 2fb55882d733d8c1e28a49153ef6c3449ebe7998 (patch) | |
tree | 5487847741f949a95b79a2f9f2046866c1dc9358 /client_maker.sh | |
parent | 6cb8d8a2a42d99e6440a2c0c74c08eca44c2d2df (diff) | |
download | Pico-2fb55882d733d8c1e28a49153ef6c3449ebe7998.tar.gz Pico-2fb55882d733d8c1e28a49153ef6c3449ebe7998.tar.bz2 Pico-2fb55882d733d8c1e28a49153ef6c3449ebe7998.zip |
Diffstat (limited to 'client_maker.sh')
-rwxr-xr-x | client_maker.sh | 6 |
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 |