From 1adb0b54fb53dd5a69780f941918313fa8372812 Mon Sep 17 00:00:00 2001 From: Manuel Valle Date: Tue, 6 Dec 2016 16:42:10 -0300 Subject: [PATCH] Fixed the key listing Variable $key was returning the content from the file certificate.crt instead of certificate.key --- bin/v-list-sys-vesta-ssl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/v-list-sys-vesta-ssl b/bin/v-list-sys-vesta-ssl index f44e83a10..fe6eea474 100755 --- a/bin/v-list-sys-vesta-ssl +++ b/bin/v-list-sys-vesta-ssl @@ -99,7 +99,7 @@ csv_list() { # Parsing SSL certificate crt=$(cat $VESTA/ssl/certificate.crt |sed ':a;N;$!ba;s/\n/\\n/g') -key=$(cat $VESTA/ssl/certificate.crt |sed ':a;N;$!ba;s/\n/\\n/g') +key=$(cat $VESTA/ssl/certificate.key |sed ':a;N;$!ba;s/\n/\\n/g') # Parsing SSL certificate details without CA info=$(openssl x509 -text -in $VESTA/ssl/certificate.crt)