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:
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user