Merge "Switch from SHA-1 to SHA-256 for new signing key certs."

am: 574ad2ec86

* commit '574ad2ec8670cf46e7d0ff13f754076c48e326cd':
  Switch from SHA-1 to SHA-256 for new signing key certs.

Change-Id: I9b3c5beb373072609c00a54844e1951a9859ed91
This commit is contained in:
Alex Klyubin
2016-05-06 19:36:47 +00:00
committed by android-build-merger

View File

@@ -51,7 +51,7 @@ read -p "Enter password for '$1' (blank for none; password will be visible): " \
if [ "${3}" = "rsa" -o "$#" -eq 2 ]; then
( openssl genrsa -f4 2048 | tee ${one} > ${two} ) &
hash="-sha1"
hash="-sha256"
elif [ "${3}" = "ec" ]; then
( openssl ecparam -name prime256v1 -genkey -noout | tee ${one} > ${two} ) &
hash="-sha256"