]> git.proxmox.com Git - swtpm.git/blob - tests/create_certs.sh
tests: Apply patches to IBM TSS2 test suite
[swtpm.git] / tests / create_certs.sh
1 #!/usr/bin/env bash
2
3 #echo $@
4
5 main() {
6 local typ ek dir vmid
7
8 while [ $# -ne 0 ]; do
9 #echo $1
10 case "$1" in
11 --type)
12 shift
13 typ="$1"
14 ;;
15 --ek)
16 shift
17 ek="$1"
18 ;;
19 --dir)
20 shift
21 dir="$1"
22 ;;
23 --vmid)
24 shift
25 vmid="$1"
26 ;;
27 --tpm2)
28 ;;
29 esac
30 shift
31 done
32
33 case "$typ" in
34 ek)
35 echo -n "ek" > ${dir}/ek.cert
36 ;;
37 platform)
38 echo -n "platform" > ${dir}/platform.cert
39 ;;
40 esac
41 }
42
43 main "$@"