#!/bin/bash SCRIPTDIR="$(dirname "$0")" OPTS=( -Djavax.net.ssl.keyStore=repro.jks -Djavax.net.ssl.keyStorePassword=abcdef -Djavax.net.ssl.trustStore=repro.jks -Djavax.net.ssl.trustStorePassword=abcdef ) if [[ -n "$JAVA_HOME" ]]; then JAVA="$JAVA_HOME/bin/java" else JAVA=java fi if [[ ! -f "$SCRIPTDIR/SSLBugRepro.class" ]]; then echo "SSLBugRepro.class not found in $SCRIPTDIR: please compile SSLBugRepro.java using a Java 8 JDK" >&2 exit 1 fi set -ex exec "$JAVA" -cp "$SCRIPTDIR" "${OPTS[@]}" SSLBugRepro "$@"