mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -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
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ csv_list() {
|
||||||
|
|
||||||
# Parsing SSL certificate
|
# Parsing SSL certificate
|
||||||
crt=$(cat $VESTA/ssl/certificate.crt |sed ':a;N;$!ba;s/\n/\\n/g')
|
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
|
# Parsing SSL certificate details without CA
|
||||||
info=$(openssl x509 -text -in $VESTA/ssl/certificate.crt)
|
info=$(openssl x509 -text -in $VESTA/ssl/certificate.crt)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue