-
Notifications
You must be signed in to change notification settings - Fork 0
/
gen-test-keys.sh
executable file
·39 lines (28 loc) · 1.14 KB
/
gen-test-keys.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
. ./common.sh
NSS_CFG_USE_COMMON="false"
NSS_DIR_PATH="./src/test/resources/keystore"
init
gen_root "ca"
gen_intermediate "interca" "ca"
gen_partner_intermediate "partner1" "interca"
gen_partner_client "partner1client1" "partner1" "interca" "ca"
gen_partner_intermediate "partner2" "interca"
gen_partner_client "partner2client1" "partner2" "interca" "ca"
gen_root "invalidca"
gen_intermediate "invalidinterca" "invalidca"
gen_partner_intermediate "invalidpartner1" "invalidinterca"
gen_partner_client "invalidpartner1client1" "invalidpartner1" "invalidinterca" "invalidca"
print_cert "partner1client1"
print_cert "partner2client1"
print_cert "invalidpartner1client1"
gen_partner_client "partner1client2rvk" "partner1" "interca" "ca"
gen_partner_client "partner2client2rvk" "partner2" "interca" "ca"
revoke_cert "partner1client2rvk" "partner1ca"
revoke_cert "partner2client2rvk" "partner2ca"
cat_crl
verify_common_cert "partner1client2rvk" "partner1" "interca" "ca"
verify_common_cert "partner2client2rvk" "partner2" "interca" "ca"
verify_common_cert "partner1client1" "partner1"
verify_common_cert "partner2client1" "partner2"
copy_crl