summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasyl Gello <vasek.gello@gmail.com>2018-10-26 22:26:35 +0300
committerBasil Gello <vasek.gello@gmail.com>2018-10-26 21:36:14 +0200
commitfb18204ba50370f8384d2ac63d19021ffe6f7d23 (patch)
tree5fe6ab7267a80f525ce7ea94312c075e646b1f1a
parent71d87907e13d0c7bda464919fdf76ed6994ac398 (diff)
downloadandroid_development-lineage-15.1.tar.gz
android_development-lineage-15.1.tar.bz2
android_development-lineage-15.1.zip
make-key: Enforce PBEv1 password-protected signing keyslineage-15.1
The bug https://bugs.openjdk.java.net/browse/JDK-8076999 prevents the usage of PBESv2 key encryption schemes enforced by recent OpenSSL versions. So we enforce the PBE-SHA1-3DES scheme as recommended in https://pthree.org/2013/05/27/strengthen-your-private-encrypted-ssh-keys/ Change-Id: I43239d4da1512d08563847db57af74146f8f66ea Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
-rwxr-xr-xtools/make_key2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/make_key b/tools/make_key
index a6cf49c0d..9eb3c9884 100755
--- a/tools/make_key
+++ b/tools/make_key
@@ -69,7 +69,7 @@ if [ "${password}" == "" ]; then
else
echo "creating ${1}.pk8 with password [${password}]"
export password
- openssl pkcs8 -in ${one} -topk8 -outform DER -out $1.pk8 \
+ openssl pkcs8 -in ${one} -topk8 -v1 PBE-SHA1-3DES -outform DER -out $1.pk8 \
-passout env:password
unset password
fi