From 44b6aefeebbc7672d5974bf4e6a44bbbacc843b6 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 11 Dec 2015 17:57:53 -0800 Subject: [PATCH] Remove fastboot/genkey.sh. Some unknown cruft from the pre-cupcake era. Change-Id: I8964892419cda9781d1506aa7006c51dc00ca33d --- fastboot/genkey.sh | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100755 fastboot/genkey.sh diff --git a/fastboot/genkey.sh b/fastboot/genkey.sh deleted file mode 100755 index 011e902ef..000000000 --- a/fastboot/genkey.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -if [ $# -ne 2 ] -then - echo "Usage: $0 alias \"pass phrase\"" - exit -1 -fi - -# Generate a 2048 bit RSA key with public exponent 3. -# Encrypt private key with provided password. -openssl genrsa -3 -out $1.pem -passout pass:"$2" 2048 - -# Create a self-signed cert for this key. -openssl req -new -x509 -key $1.pem -passin pass:"$2" \ - -out $1-cert.pem \ - -batch -days 10000 - -# Create a PKCS12 store containing the generated private key. -# Protect the keystore and the private key with the provided password. -openssl pkcs12 -export -in $1-cert.pem -inkey $1.pem -passin pass:"$2" \ - -out $1.p12 -name $1 -passout pass:"$2" - -rm $1.pem -rm $1-cert.pem -