equal
deleted
inserted
replaced
1 # |
1 # |
2 # Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved. |
2 # Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # |
4 # |
5 # This code is free software; you can redistribute it and/or modify it |
5 # This code is free software; you can redistribute it and/or modify it |
6 # under the terms of the GNU General Public License version 2 only, as |
6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. |
7 # published by the Free Software Foundation. |
42 * ) |
42 * ) |
43 FS="/" |
43 FS="/" |
44 ;; |
44 ;; |
45 esac |
45 esac |
46 |
46 |
47 KS=selfsigned.jks |
47 KS=selfsigned.ks |
48 KT="$TESTJAVA${FS}bin${FS}keytool ${TESTTOOLVMOPTS} -storepass changeit -keypass changeit -keystore $KS -keyalg rsa" |
48 KT="$TESTJAVA${FS}bin${FS}keytool ${TESTTOOLVMOPTS} -storepass changeit -keypass changeit -keystore $KS -keyalg rsa" |
49 |
49 |
50 rm $KS |
50 rm $KS |
51 |
51 |
52 $KT -alias ca -dname CN=CA -genkeypair |
52 $KT -alias ca -dname CN=CA -genkeypair |
53 $KT -alias ca1 -dname CN=CA -genkeypair |
53 $KT -alias ca1 -dname CN=CA1 -genkeypair |
54 $KT -alias ca2 -dname CN=CA -genkeypair |
54 $KT -alias ca2 -dname CN=CA2 -genkeypair |
55 $KT -alias e1 -dname CN=E1 -genkeypair |
55 $KT -alias e1 -dname CN=E1 -genkeypair |
56 |
56 |
57 # ca signs ca1, ca1 signs ca2, all self-issued |
57 # ca signs ca1, ca1 signs ca2, all self-issued |
58 $KT -alias ca1 -certreq | $KT -alias ca -gencert -ext san=dns:ca1 \ |
58 $KT -alias ca1 -certreq | $KT -alias ca -gencert -ext san=dns:ca1 \ |
59 | $KT -alias ca1 -importcert |
59 | $KT -alias ca1 -importcert |