From 127233293d4ec3006f17518528e0b640c47cfdee Mon Sep 17 00:00:00 2001
From: Sean McArthur <sean.monstar@gmail.com>
Date: Mon, 23 Jul 2012 11:05:32 -0700
Subject: [PATCH] remove generate_ephemeral_keys.sh, use .js

---
 scripts/generate_ephemeral_keys.sh | 38 ------------------------------
 1 file changed, 38 deletions(-)
 delete mode 100755 scripts/generate_ephemeral_keys.sh

diff --git a/scripts/generate_ephemeral_keys.sh b/scripts/generate_ephemeral_keys.sh
deleted file mode 100755
index 866889657..000000000
--- a/scripts/generate_ephemeral_keys.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-
-SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
-VAR=$SCRIPT_DIR/../var
-export PATH=$PATH:$SCRIPT_DIR/../node_modules/.bin
-
-# if keys already exist, do nothing
-if [ -f $VAR/root.cert ] ; then
-    exit 0
-fi
-
-GENERATE_KEYPAIR=`which generate-keypair 2> /dev/null`
-CERTIFY=`which certify 2> /dev/null`
-
-if [ ! -x "$GENERATE_KEYPAIR" ] ; then
-    echo "can't find generate-keypair from the jwcrypto package.  try: npm install"
-    exit 1
-fi
-
-if [ ! -x "$CERTIFY" ] ; then
-    echo "can't find certify from the jwcrypto package.  try: rm -rf node_modules && npm install"
-    exit 1
-fi
-
-echo '*** Generating ephemeral keys used for testing ***'
-$GENERATE_KEYPAIR -k 256 -a rsa
-mkdir -p $VAR
-
-# public key will be stored as a self signed certificate with an embedded
-# creation date (so that if the key is updated, we can revoke outstanding
-# certificates - GH-599 & GH-600)
-$CERTIFY -s key.secretkey -p key.publickey > $VAR/root.cert
-rm key.publickey
-mv key.secretkey $VAR/root.secretkey
-- 
GitLab