Skip to content

Commit 1adb0b5

Browse files
author
Manuel Valle
authored
Fixed the key listing
Variable $key was returning the content from the file certificate.crt instead of certificate.key
1 parent 6ce840f commit 1adb0b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-list-sys-vesta-ssl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ csv_list() {
9999

100100
# Parsing SSL certificate
101101
crt=$(cat $VESTA/ssl/certificate.crt |sed ':a;N;$!ba;s/\n/\\n/g')
102-
key=$(cat $VESTA/ssl/certificate.crt |sed ':a;N;$!ba;s/\n/\\n/g')
102+
key=$(cat $VESTA/ssl/certificate.key |sed ':a;N;$!ba;s/\n/\\n/g')
103103

104104
# Parsing SSL certificate details without CA
105105
info=$(openssl x509 -text -in $VESTA/ssl/certificate.crt)

0 commit comments

Comments
 (0)