Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
janlegner committed May 15, 2024
1 parent d4c9553 commit ed0bcb5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion certs/openssl.server.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extendedKeyUsage = serverAuth
subjectAltName = DNS:*.rpcpool.wg,DNS:localhost,IP:0.0.0.0,IP:127.0.0.1
subjectAltName = DNS:*.marinade.finance,DNS:localhost,IP:0.0.0.0,IP:127.0.0.1
authorityKeyIdentifier = keyid,issuer
basicConstraints = CA:FALSE
2 changes: 1 addition & 1 deletion scripts/cert-client.bash
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ then
exit 1
fi

openssl x509 -req -in "$CERTS/client.req" -days 60 -CA "$CERTS/ca.cert" -CAkey "$CERTS/ca.key" -CAcreateserial -out "$CERTS/client.$VALIDATOR.cert" -extfile "$CERTS/openssl.client.conf"
openssl x509 -req -in "$CERTS/client.req" -days 3650 -CA "$CERTS/ca.cert" -CAkey "$CERTS/ca.key" -CAcreateserial -out "$CERTS/client.$VALIDATOR.cert" -extfile "$CERTS/openssl.client.conf"
cat "$CERTS/client.$VALIDATOR.cert"
else
echo "Usage: $0 <req|sign> ..."
Expand Down
2 changes: 1 addition & 1 deletion scripts/cert-server.bash
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ CMD="$1"

if [[ $CMD == "ca" ]]
then
openssl req -x509 -newkey rsa:4096 -days 3650 -nodes -keyout "$CERTS/ca.key" -out "$CERTS/ca.cert" -subj "/CN=Triton One"
openssl req -x509 -newkey rsa:4096 -days 3650 -nodes -keyout "$CERTS/ca.key" -out "$CERTS/ca.cert" -subj "/CN=Marinade"
elif [[ $CMD == "sign" ]]
then
HOST="$2"
Expand Down

0 comments on commit ed0bcb5

Please sign in to comment.