aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-07-06 11:11:18 +0200
committerAlex Auvolat <alex@adnab.me>2021-07-06 11:16:04 +0200
commit740b863750bb2445ac40b3e5b8c6c3cbc2488b42 (patch)
tree3b95a96419c8cd460093974f6ab0f3c46e886655
parentfa394dcd271a1cfeaa061dc58f2d33f492603e37 (diff)
downloadgarage-0.3.0.1.tar.gz
garage-0.3.0.1.zip
Update genkeys.sh to generate ed25519 keys instead of RSAv0.3.0.1
-rwxr-xr-xgenkeys.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/genkeys.sh b/genkeys.sh
index 92d86ab8..70fe12e0 100755
--- a/genkeys.sh
+++ b/genkeys.sh
@@ -11,7 +11,7 @@ cd pki
# the RPC protocol will use to authenticate the other side.
if [ ! -f garage-ca.key ]; then
echo "Generating Garage CA keys..."
- openssl genrsa -out garage-ca.key 4096
+ openssl genpkey -algorithm ED25519 -out garage-ca.key
openssl req -x509 -new -nodes -key garage-ca.key -sha256 -days 3650 -out garage-ca.crt -subj "/C=FR/O=Garage"
fi
@@ -22,7 +22,7 @@ fi
if [ ! -f garage.crt ]; then
echo "Generating Garage agent keys..."
if [ ! -f garage.key ]; then
- openssl genrsa -out garage.key 4096
+ openssl genpkey -algorithm ED25519 -out garage.key
fi
openssl req -new -sha256 -key garage.key -subj "/C=FR/O=Garage/CN=garage" \
-out garage.csr
@@ -56,7 +56,7 @@ fi
if [ ! -f garage-client.crt ]; then
echo "Generating Garage client keys..."
if [ ! -f garage-client.key ]; then
- openssl genrsa -out garage-client.key 4096
+ openssl genpkey -algorithm ED25519 -out garage-client.key
fi
openssl req -new -sha256 -key garage-client.key -subj "/C=FR/O=Garage" \
-out garage-client.csr