Просмотр исходного кода

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 |\
twoup 8 лет назад
Родитель
Сommit
9947764365
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      bin/v-add-letsencrypt-user

+ 1 - 1
bin/v-add-letsencrypt-user

@@ -55,7 +55,7 @@ if [ ! -e "$key" ]; then
 fi
 fi
 
 
 # Defining key exponent
 # 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//' |\
     grep Exponent: |cut -f 2 -d '(' |cut -f 1 -d ')' |sed -e 's/x//' |\
     xxd -r -p |encode_base64)
     xxd -r -p |encode_base64)