test/jdk/sun/security/pkcs11/KeyStore/ClientAuth.sh
author xuelei
Mon, 25 Jun 2018 13:41:39 -0700
changeset 50768 68fa3d4026ea
parent 47216 71c04702a3d5
child 51460 97e361fe3433
permissions -rw-r--r--
8196584: TLS 1.3 Implementation Reviewed-by: ascarpino, coffeys, dfuchs, jjiang, jnimeh, mullan, rhalade, ssahoo, valeriep, weijun, wetmore, xuelei Contributed-by: Adam Petcher <adam.petcher@oracle.com>, Amanda Jiang <amanda.jiang@oracle.com>, Anthony Scarpino <anthony.scarpino@oracle.com>, Bradford Wetmore <bradford.wetmore@oracle.com>, Jamil Nimeh <jamil.j.nimeh@oracle.com>, John Jiang <sha.jiang@oracle.com>, Rajan Halade <rajan.halade@oracle.com>, Sibabrata Sahoo <sibabrata.sahoo@oracle.com>, Valerie Peng <valerie.peng@oracle.com>, Weijun Wang <weijun.wang@oracle.com>, Xuelei Fan <xuelei.fan@oracle.com>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents: 21948
diff changeset
     2
# Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
# published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
# This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
# version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
# accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
# You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
# 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
#
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    19
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    20
# or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
# questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
# @test
11521
d7698e6c5f51 7106773: 512 bits RSA key cannot work with SHA384 and SHA512
xuelei
parents: 5506
diff changeset
    25
# @bug 4938185 7106773
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
# @summary KeyStore support for NSS cert/key databases
11521
d7698e6c5f51 7106773: 512 bits RSA key cannot work with SHA384 and SHA512
xuelei
parents: 5506
diff changeset
    27
#          512 bits RSA key cannot work with SHA384 and SHA512
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
# @run shell ClientAuth.sh
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
# set a few environment variables so that the shell-script can run stand-alone
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
# in the source directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
if [ "${TESTSRC}" = "" ] ; then
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
    TESTSRC=`pwd`
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
if [ "${TESTCLASSES}" = "" ] ; then
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
    TESTCLASSES=`pwd`
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
if [ "${TESTJAVA}" = "" ] ; then
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
    TESTJAVA="/net/radiant/export1/charlie/mustang/build/solaris-sparc"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
fi
15254
3997a6f357cb 8005978: shell tests need to use the $COMPILEJDK for javac, jar and other tools
alanb
parents: 14786
diff changeset
    43
if [ "${COMPILEJAVA}" = "" ]; then
3997a6f357cb 8005978: shell tests need to use the $COMPILEJDK for javac, jar and other tools
alanb
parents: 14786
diff changeset
    44
  COMPILEJAVA="${TESTJAVA}"
3997a6f357cb 8005978: shell tests need to use the $COMPILEJDK for javac, jar and other tools
alanb
parents: 14786
diff changeset
    45
fi
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
echo TESTSRC=${TESTSRC}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
echo TESTCLASSES=${TESTCLASSES}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
echo TESTJAVA=${TESTJAVA}
15254
3997a6f357cb 8005978: shell tests need to use the $COMPILEJDK for javac, jar and other tools
alanb
parents: 14786
diff changeset
    49
echo COMPILEJAVA=${COMPILEJAVA}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
echo ""
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
OS=`uname -s`
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
case "$OS" in
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
  SunOS )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    ARCH=`isainfo`
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
    case "$ARCH" in
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
      sparc* )
50768
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    58
    FS="/"
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    59
    PS=":"
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    60
    CP="${FS}bin${FS}cp"
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    61
    CHMOD="${FS}bin${FS}chmod"
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    62
    ;;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
      i[3-6]86 )
50768
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    64
    FS="/"
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    65
    PS=":"
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    66
    CP="${FS}bin${FS}cp"
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    67
    CHMOD="${FS}bin${FS}chmod"
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    68
    ;;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
      amd64* )
50768
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    70
    FS="/"
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    71
    PS=":"
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    72
    CP="${FS}bin${FS}cp"
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    73
    CHMOD="${FS}bin${FS}chmod"
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    74
    ;;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
      * )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
#     ?itanium? )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
#     amd64* )
50768
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    78
    echo "Unsupported System: Solaris ${ARCH}"
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    79
    exit 0;
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    80
    ;;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
    esac
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
    ;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
  Linux )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
    ARCH=`uname -m`
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
    case "$ARCH" in
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
      i[3-6]86 )
50768
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    87
    FS="/"
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    88
    PS=":"
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    89
    CP="${FS}bin${FS}cp"
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    90
    CHMOD="${FS}bin${FS}chmod"
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    91
    ;;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
      * )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
#     ia64 )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
#     x86_64 )
50768
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    95
    echo "Unsupported System: Linux ${ARCH}"
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    96
    exit 0;
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
    97
    ;;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
    esac
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
    ;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
  Windows* )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
    FS="\\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
    PS=";"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
    CP="cp"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
    CHMOD="chmod"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
    # 'uname -m' does not give us enough information -
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
    #  should rely on $PROCESSOR_IDENTIFIER (as is done in Defs-windows.gmk),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
    #  but JTREG does not pass this env variable when executing a shell script.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
    #
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
    #  execute test program - rely on it to exit if platform unsupported
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
    ;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
  * )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
    echo "Unsupported System: ${OS}"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    exit 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
    ;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
esac
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
# first make cert/key DBs writable
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
${CP} ${TESTSRC}${FS}ClientAuthData${FS}cert8.db ${TESTCLASSES}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
${CHMOD} +w ${TESTCLASSES}${FS}cert8.db
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
${CP} ${TESTSRC}${FS}ClientAuthData${FS}key3.db ${TESTCLASSES}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
${CHMOD} +w ${TESTCLASSES}${FS}key3.db
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
# compile test
15254
3997a6f357cb 8005978: shell tests need to use the $COMPILEJDK for javac, jar and other tools
alanb
parents: 14786
diff changeset
   128
${COMPILEJAVA}${FS}bin${FS}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} \
50768
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   129
    -classpath ${TESTSRC} \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   130
    -d ${TESTCLASSES} \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   131
    ${TESTSRC}${FS}ClientAuth.java \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   132
    ${TESTSRC}${FS}..${FS}PKCS11Test.java
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
# run test
50768
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   135
echo "Run ClientAuth TLSv1 ..."
14786
a9f61e0cbe61 8003890: corelibs test scripts should pass TESTVMOPTS
chegar
parents: 11521
diff changeset
   136
${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} \
50768
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   137
    -classpath ${TESTCLASSES} \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   138
    -DDIR=${TESTSRC}${FS}ClientAuthData${FS} \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   139
    -DCUSTOM_DB_DIR=${TESTCLASSES} \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   140
    -DCUSTOM_P11_CONFIG=${TESTSRC}${FS}ClientAuthData${FS}p11-nss.txt \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   141
    -DNO_DEFAULT=true \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   142
    -DNO_DEIMOS=true \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   143
    -Dtest.src=${TESTSRC} \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   144
    -Dtest.classes=${TESTCLASSES} \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   145
    ClientAuth TLSv1
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   146
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   147
# save error status
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   148
status=$?
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   149
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   150
# return if failed
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   151
if [ "${status}" != "0" ] ; then
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   152
    exit $status
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   153
fi
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   154
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   155
# run test
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   156
echo "Run ClientAuth TLSv1.1 ..."
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   157
${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   158
    -classpath ${TESTCLASSES} \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   159
    -DDIR=${TESTSRC}${FS}ClientAuthData${FS} \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   160
    -DCUSTOM_DB_DIR=${TESTCLASSES} \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   161
    -DCUSTOM_P11_CONFIG=${TESTSRC}${FS}ClientAuthData${FS}p11-nss.txt \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   162
    -DNO_DEFAULT=true \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   163
    -DNO_DEIMOS=true \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   164
    -Dtest.src=${TESTSRC} \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   165
    -Dtest.classes=${TESTCLASSES} \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   166
    ClientAuth TLSv1.1
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
# save error status
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
status=$?
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
11521
d7698e6c5f51 7106773: 512 bits RSA key cannot work with SHA384 and SHA512
xuelei
parents: 5506
diff changeset
   171
# return if failed
d7698e6c5f51 7106773: 512 bits RSA key cannot work with SHA384 and SHA512
xuelei
parents: 5506
diff changeset
   172
if [ "${status}" != "0" ] ; then
d7698e6c5f51 7106773: 512 bits RSA key cannot work with SHA384 and SHA512
xuelei
parents: 5506
diff changeset
   173
    exit $status
d7698e6c5f51 7106773: 512 bits RSA key cannot work with SHA384 and SHA512
xuelei
parents: 5506
diff changeset
   174
fi
d7698e6c5f51 7106773: 512 bits RSA key cannot work with SHA384 and SHA512
xuelei
parents: 5506
diff changeset
   175
d7698e6c5f51 7106773: 512 bits RSA key cannot work with SHA384 and SHA512
xuelei
parents: 5506
diff changeset
   176
# run test with specified TLS protocol and cipher suite
d7698e6c5f51 7106773: 512 bits RSA key cannot work with SHA384 and SHA512
xuelei
parents: 5506
diff changeset
   177
echo "Run ClientAuth TLSv1.2 TLS_DHE_RSA_WITH_AES_128_CBC_SHA"
14786
a9f61e0cbe61 8003890: corelibs test scripts should pass TESTVMOPTS
chegar
parents: 11521
diff changeset
   178
${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} \
50768
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   179
    -classpath ${TESTCLASSES} \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   180
    -DDIR=${TESTSRC}${FS}ClientAuthData${FS} \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   181
    -DCUSTOM_DB_DIR=${TESTCLASSES} \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   182
    -DCUSTOM_P11_CONFIG=${TESTSRC}${FS}ClientAuthData${FS}p11-nss.txt \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   183
    -DNO_DEFAULT=true \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   184
    -DNO_DEIMOS=true \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   185
    -Dtest.src=${TESTSRC} \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   186
    -Dtest.classes=${TESTCLASSES} \
68fa3d4026ea 8196584: TLS 1.3 Implementation
xuelei
parents: 47216
diff changeset
   187
    ClientAuth TLSv1.2 TLS_DHE_RSA_WITH_AES_128_CBC_SHA
11521
d7698e6c5f51 7106773: 512 bits RSA key cannot work with SHA384 and SHA512
xuelei
parents: 5506
diff changeset
   188
d7698e6c5f51 7106773: 512 bits RSA key cannot work with SHA384 and SHA512
xuelei
parents: 5506
diff changeset
   189
# save error status
d7698e6c5f51 7106773: 512 bits RSA key cannot work with SHA384 and SHA512
xuelei
parents: 5506
diff changeset
   190
status=$?
d7698e6c5f51 7106773: 512 bits RSA key cannot work with SHA384 and SHA512
xuelei
parents: 5506
diff changeset
   191
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
# return
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
exit $status