1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/galene_ynh.git synced 2024-09-03 18:36:31 +02:00
This commit is contained in:
ericgaspar 2021-01-09 22:53:29 +01:00
parent 98b4baa2ad
commit 6489385cea
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 7 additions and 1 deletions

View file

@ -94,7 +94,6 @@ cp -R ../sources/* $final_path/
pushd "$final_path"
ynh_exec_warn_less openssl req -newkey rsa:2048 -nodes -keyout data/key.pem -x509 -days 365 -out data/cert.pem \
-subj "/C=/ST=/L=/O=/OU=/CN=/emailAddress="
#chown root:ssl-cert data/{key.pem,cert.pem}
chmod 640 data/{key.pem,cert.pem}
popd

View file

@ -89,6 +89,13 @@ then
# Remove the tmp directory securely
ynh_secure_remove --file="$tmpdir"
# Recreate certificates
pushd "$final_path"
ynh_exec_warn_less openssl req -newkey rsa:2048 -nodes -keyout data/key.pem -x509 -days 365 -out data/cert.pem \
-subj "/C=/ST=/L=/O=/OU=/CN=/emailAddress="
chmod 640 data/{key.pem,cert.pem}
popd
fi
#=================================================