From 9947764365d08bfa341daa17cdcbd3f0aebdadda Mon Sep 17 00:00:00 2001 From: twoup Date: Fri, 21 Jul 2017 11:00:40 +0100 Subject: [PATCH] Fix issue in v-letsencrypt-add-user This issue is getting some hits on the forum. Tiny typo on Line 58. exponent=$(openssl pkey -inform perm -in "$key" -noout -text_pub |\ -inform perm is not a valid openssl pkey option. The correct code iis: exponent=$(openssl pkey -inform pem -in "$key" -noout -text_pub |\ --- bin/v-add-letsencrypt-user | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/v-add-letsencrypt-user b/bin/v-add-letsencrypt-user index fd10fe06..3b14cd69 100755 --- a/bin/v-add-letsencrypt-user +++ b/bin/v-add-letsencrypt-user @@ -55,7 +55,7 @@ if [ ! -e "$key" ]; then fi # Defining key exponent -exponent=$(openssl pkey -inform perm -in "$key" -noout -text_pub |\ +exponent=$(openssl pkey -inform pem -in "$key" -noout -text_pub |\ grep Exponent: |cut -f 2 -d '(' |cut -f 1 -d ')' |sed -e 's/x//' |\ xxd -r -p |encode_base64)