mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-07-06 13:05:18 +02:00
bugfix: PRIVATE_KEY is now configurable in config.sh, don't alter this variable after set_defaults()
This commit is contained in:
@@ -119,7 +119,6 @@ init_system() {
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Check if private account key exists, if it doesn't exist yet generate a new one (rsa key)
|
# Check if private account key exists, if it doesn't exist yet generate a new one (rsa key)
|
||||||
PRIVATE_KEY="${BASEDIR}/private_key.pem"
|
|
||||||
if [[ ! -e "${PRIVATE_KEY}" ]]; then
|
if [[ ! -e "${PRIVATE_KEY}" ]]; then
|
||||||
echo "+ Generating account key..."
|
echo "+ Generating account key..."
|
||||||
_openssl genrsa -out "${PRIVATE_KEY}" "${KEYSIZE}"
|
_openssl genrsa -out "${PRIVATE_KEY}" "${KEYSIZE}"
|
||||||
|
|||||||
Reference in New Issue
Block a user