Skip to content
This repository was archived by the owner on Aug 6, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dappnode_package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ssv.dnp.dappnode.eth",
"version": "0.1.1",
"upstream":[
"upstream": [
{
"repo": "ssvlabs/ssv",
"version": "v1.3.4",
Expand Down Expand Up @@ -35,10 +35,10 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/dappnode/DAppNodePackage-holesky-SSV.git"
"url": "git+https://github.com/dappnode/DAppNodePackage-SSV.git"
},
"bugs": {
"url": "https://github.com/dappnode/DAppNodePackage-holesky-SSV/issues"
"url": "https://github.com/dappnode/DAppNodePackage-SSV/issues"
},
"requirements": {
"minimumDappnodeVersion": "0.2.58"
Expand Down
21 changes: 21 additions & 0 deletions dkg/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ OPERATOR_ID_FILE=${OPERATOR_CONFIG_DIR}/operator_id.txt
DKG_CONFIG_FILE=${DKG_CONFIG_DIR}/dkg-config.yml
DKG_LOG_FILE=${DKG_LOGS_DIR}/dkg.log

CERT_DIR=/ssl
CERT_FILE="$CERT_DIR/tls.crt"
KEY_FILE="$CERT_DIR/tls.key"

create_directories() {
mkdir -p ${DKG_CONFIG_DIR} ${DKG_LOGS_DIR} ${DKG_OUTPUT_DIR}
}
Expand Down Expand Up @@ -73,6 +77,22 @@ fetch_operator_id_from_api() {
fi
}

generate_tls_cert() {
echo "[INFO] Generating TLS certificates..."

mkdir -p "$CERT_DIR"

# Generate a self-signed SSL certificate only if it doesn't exist
if [ ! -f "$CERT_FILE" ] || [ ! -f "$KEY_FILE" ]; then
echo "[INFO] Certificate or key file not found. Generating new SSL certificate and key."
openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes \
-keyout "$KEY_FILE" -out "$CERT_FILE" \
-subj "/C=IL/ST=Tel Aviv/L=Tel Aviv/O=Coin-Dash Ltd/CN=*.ssvlabs.io"
else
echo "[INFO] Existing SSL certificate and key found. Using them."
fi
}

start_dkg() {
exec /bin/ssv-dkg start-operator \
--operatorID ${OPERATOR_ID} \
Expand All @@ -89,6 +109,7 @@ main() {
create_directories
wait_for_private_key
get_operator_id
generate_tls_cert
start_dkg
}

Expand Down
2 changes: 1 addition & 1 deletion getting-started.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# **SSV Holesky**
# **SSV**

SSV is a network of validators that use a decentralized network of operators to run their validators. This package allows you to run an SSV Operator Node on Ethereum mainnet.

Expand Down