Merge "Switch from SHA-1 to SHA-256 for new signing key certs." am: 574ad2ec86
am: b2e8ea51a9
* commit 'b2e8ea51a9200af1c7ff7aa75f2fc0e3cf6e6843':
Switch from SHA-1 to SHA-256 for new signing key certs.
Change-Id: Ieb51183816a46c7697ccbcf9854ce485e885abb1
This commit is contained in:
@@ -51,7 +51,7 @@ read -p "Enter password for '$1' (blank for none; password will be visible): " \
|
|||||||
|
|
||||||
if [ "${3}" = "rsa" -o "$#" -eq 2 ]; then
|
if [ "${3}" = "rsa" -o "$#" -eq 2 ]; then
|
||||||
( openssl genrsa -f4 2048 | tee ${one} > ${two} ) &
|
( openssl genrsa -f4 2048 | tee ${one} > ${two} ) &
|
||||||
hash="-sha1"
|
hash="-sha256"
|
||||||
elif [ "${3}" = "ec" ]; then
|
elif [ "${3}" = "ec" ]; then
|
||||||
( openssl ecparam -name prime256v1 -genkey -noout | tee ${one} > ${two} ) &
|
( openssl ecparam -name prime256v1 -genkey -noout | tee ${one} > ${two} ) &
|
||||||
hash="-sha256"
|
hash="-sha256"
|
||||||
|
|||||||
Reference in New Issue
Block a user