From 3e7f301c49dedadbced609b947d70e3855597338 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Van=C4=9Bk?= Date: Mon, 25 May 2020 21:53:25 +0200 Subject: [PATCH] [scripts] feat: use CA certificates from Mozilla This enables the generation of CAcerts database from Mozilla's list of trustworthy certificates as implemented in AdoptOpenJDK's build repository. Related to https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/728#issuecomment-633693427 Related to https://github.com/AdoptOpenJDK/openjdk-build/commit/9cb3ddcb8f3550aa904f086146be0cdd242d7e8a --- scripts/fetch.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/fetch.sh b/scripts/fetch.sh index 2ca54e0..f8ab70b 100644 --- a/scripts/fetch.sh +++ b/scripts/fetch.sh @@ -166,3 +166,9 @@ fi # clone the root project echo "[FETCH] Cloning openjdk-build repo" git clone --depth 1 "$ABLDREPO" "$ABLDDIR" + +if [ ! -f "$CACERTFILE" ]; then + echo "[FETCH] Generating CA certificate database" + cd "$(dirname "$CACERTFILE")" + ./mk-cacerts.sh --keytool "$HOSTJDK/bin/keytool" +fi