From 3ab86102c8686f17ef3393d0f05f5b0b192f5282 Mon Sep 17 00:00:00 2001 From: "patrick.fry" Date: Fri, 26 Mar 2021 20:42:53 +0000 Subject: [PATCH] windows bash shell - OpenSSL setup (main --> ce/main) [git-p4: depot-paths = "//dev/coherence-ce/main/": change = 85602] --- .p4ignore | 8 +++++--- bin/cfgwindows.sh | 22 +++++++++++++++++++--- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/.p4ignore b/.p4ignore index 648ee3b8e002d..be4216a9e0e0a 100644 --- a/.p4ignore +++ b/.p4ignore @@ -1,10 +1,12 @@ # -# Copyright (c) 2000, 2020, Oracle and/or its affiliates. +# Copyright (c) 2000, 2021, Oracle and/or its affiliates. # -# Licensed under the Universal Permissive License v 1.0 as shown at -# http://oss.oracle.com/licenses/upl. +# Licensed under the Universal Permissive License v 1.0 as shown at +# http://oss.oracle.com/licenses/upl. # # Directory for auto-downloaded JDK jdk/ +# Directory for auto-downloaded OpenSSL on Windows +openssl/ diff --git a/bin/cfgwindows.sh b/bin/cfgwindows.sh index d35997d0f8141..799c15616f8b8 100644 --- a/bin/cfgwindows.sh +++ b/bin/cfgwindows.sh @@ -1,10 +1,10 @@ #!/bin/bash # -# Copyright (c) 2000, 2020, Oracle and/or its affiliates. +# Copyright (c) 2000, 2021, Oracle and/or its affiliates. # -# Licensed under the Universal Permissive License v 1.0 as shown at -# http://oss.oracle.com/licenses/upl. +# Licensed under the Universal Permissive License v 1.0 as shown at +# http://oss.oracle.com/licenses/upl. # # @@ -28,6 +28,11 @@ function get_java_home echo Not Supported } +function get_openssl_home + { + echo Not Supported + } + # determine the scripts directory, assuming all scripts are in the same directory SCRIPT_PATH="${BASH_SOURCE[0]}" while [ -h "${SCRIPT_PATH}" ]; do @@ -50,5 +55,16 @@ fi source $SCRIPTS_DIR/cfgcommon.sh +# configure OpenSSL for building test certificates +if [ -z $OPENSSL_HOME ]; then + OPENSSL_HOME=`eval get_openssl_home` + echo OPENSSL_HOME evaluated to $OPENSSL_HOME +fi + +export PATH=${OPENSSL_HOME}:${PATH} +export OPENSSL_CONF=${OPENSSL_HOME}/openssl.cnf +echo openssl: `which openssl` +openssl version + unset SCRIPT_PATH unset SCRIPTS_DIR