setup script updated
This commit is contained in:
parent
da664519f3
commit
4e5339df5a
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@ while true; do
|
||||||
fi
|
fi
|
||||||
sudo mkdir -p "$cert_path"
|
sudo mkdir -p "$cert_path"
|
||||||
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout "$cert_path"/"$cert_name".key -out "$cert_path"/"$cert_name".crt
|
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout "$cert_path"/"$cert_name".key -out "$cert_path"/"$cert_name".crt
|
||||||
echo -e "\n ${GRN}SSL certificate files ${LCY}$cert_name.crt ${GRN}and ${LCY}$cert_name.key ${GRN}created and stored in ${LCY}$cert_path${CRS}\n"
|
echo -e "\n ${GRN}SSL certificate files ${LCY}$cert_name.crt ${GRN}and ${LCY}$cert_name.key ${GRN}created and stored in ${LCY}$cert_path${CRS}"
|
||||||
sudo chmod 644 "$cert_path"/"$cert_name".crt
|
sudo chmod 644 "$cert_path"/"$cert_name".crt
|
||||||
sudo chmod 600 "$cert_path"/"$cert_name".key
|
sudo chmod 600 "$cert_path"/"$cert_name".key
|
||||||
sudo cp assets/config/nginx/nginx_SSL.conf /etc/nginx/sites-enabled/$(hostname).conf
|
sudo cp assets/config/nginx/nginx_SSL.conf /etc/nginx/sites-enabled/$(hostname).conf
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue