mirror of
https://github.com/YunoHost-Apps/galene_ynh.git
synced 2024-09-03 18:36:31 +02:00
Remove generated certificates
This commit is contained in:
parent
37be6d3d61
commit
6724eaabdf
2 changed files with 0 additions and 17 deletions
|
@ -99,16 +99,6 @@ groups="$final_path/groups"
|
||||||
# Create groups folder
|
# Create groups folder
|
||||||
mkdir -p "$groups"
|
mkdir -p "$groups"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# CREATE A SERVER CERTIFICATE
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
pushd "$final_path/data"
|
|
||||||
ynh_exec_warn_less openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out cert.pem \
|
|
||||||
-subj "/C=/ST=/L=/O=/OU=/CN=/emailAddress="
|
|
||||||
chmod 640 {key.pem,cert.pem}
|
|
||||||
popd
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -101,13 +101,6 @@ then
|
||||||
|
|
||||||
# Remove the tmp directory securely
|
# Remove the tmp directory securely
|
||||||
ynh_secure_remove --file="$tmpdir"
|
ynh_secure_remove --file="$tmpdir"
|
||||||
|
|
||||||
# Recreate certificates
|
|
||||||
pushd "$final_path/data"
|
|
||||||
ynh_exec_warn_less openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out cert.pem \
|
|
||||||
-subj "/C=/ST=/L=/O=/OU=/CN=/emailAddress="
|
|
||||||
chmod 640 {key.pem,cert.pem}
|
|
||||||
popd
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue