summaryrefslogtreecommitdiffstats
path: root/scripts/tps-pin-reset.sh
blob: 741104d30ccc2649cb158ec5b68296a8a7bb4ecd (plain)
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
#!/bin/sh

uid=$1
cuid=$2

tpsclient <<EOF
op=var_set name=ra_host value=localhost
op=var_set name=ra_port value=8080
op=var_set name=ra_uri value=/tps/tps
op=var_list

#op=token_status

op=token_set cuid=$cuid msn=01020304 app_ver=6FBBC105 key_info=0101 major_ver=0 minor_ver=0

op=token_set auth_key=404142434445464748494a4b4c4d4e4f
op=token_set mac_key=404142434445464748494a4b4c4d4e4f
op=token_set kek_key=404142434445464748494a4b4c4d4e4f

op=ra_reset_pin uid=$uid pwd=Secret123 new_pin=Secret123 num_threads=1

#op=token_status

op=exit
EOF