1
0
Fork 0
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:
ericgaspar 2021-05-25 13:55:21 +02:00
parent 37be6d3d61
commit 6724eaabdf
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 0 additions and 17 deletions

View file

@ -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
#================================================= #=================================================

View file

@ -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
#================================================= #=================================================