1
0
mirror of https://github.com/serghey-rodin/vesta.git synced 2025-03-12 04:36:25 -07:00

Fixed the key listing

Variable $key was returning the content from the file certificate.crt instead of certificate.key
This commit is contained in:
Manuel Valle 2016-12-06 16:42:10 -03:00 committed by GitHub
parent 6ce840fd28
commit 1adb0b54fb

@ -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)