From ff80cc95791c8516c7f068e64fe8208dad4c12a6 Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman Date: Wed, 11 Oct 2023 11:45:22 -0400 Subject: [PATCH] fixed the generation of the keys --- README.md | 4 ++-- genkeys.sh | 15 --------------- 2 files changed, 2 insertions(+), 17 deletions(-) delete mode 100644 genkeys.sh diff --git a/README.md b/README.md index db97bb4d..a4aaa459 100644 --- a/README.md +++ b/README.md @@ -84,8 +84,8 @@ We will use these keys to set the values in the next step. Now lets set the environment values to be used in vercel (this mostly only effect the stuff under /api). * POLL_MILLISECONDS: Set to 250000 or higher. This sets the minimum wait time between calls to the send-note endpoint. You may wish to adjust the cronjob in vercel.json as well. -* ACTIVITYPUB_PRIVATE_KEY: Get this value from generating the keys in the previous step. -* ACTIVITYPUB_PUBLIC_KEY: Get this value from generating the keys in the previous step. +* ACTIVITYPUB_PRIVATE_KEY: Get this value from generating the keys in the previous step. Note: When you paste in the key vercel will warn about newlines, you must ignore the warning. +* ACTIVITYPUB_PUBLIC_KEY: Get this value from generating the keys in the previous step. Note: When you paste in the key vercel will warn about newlines, you must ignore the warning. * FIREBASE_PRIVATE_KEY: The value from earlier when setting up Firebase contained in the json. This is **not** the same as the ACTIVITYPUB_PRIVATE_KEY we generated a moment ago. * FIREBASE_CLIENT_EMAIL: The value from earlier when setting up Firebase contained in the json * NEXT_PUBLIC_FIREBASE_PROJECT_ID: The value shown in Firebase from the easlier step. diff --git a/genkeys.sh b/genkeys.sh deleted file mode 100644 index a7bfbd1f..00000000 --- a/genkeys.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -openssl genrsa -out private.pem 2048 -openssl rsa -in private.pem -outform PEM -pubout -out public.pem - -PRIVATE_KEY=`cat private.pem` -PUBLIC_KEY=`cat public.pem` - -#PUBLIC_KEY_CLEAN="${PUBLIC_KEY//$'\n'/'\n'}" -#PRIVATE_KEY_CLEAN="${PRIVATE_KEY//$'\n'/'\n'}" - -echo -echo "$PRIVATE_KEY" -echo -echo "$PUBLIC_KEY}" -echo