github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/go/apps/simpleexample/SimpleDomain/inittpm1domain (about) 1 # 2 source ./defines 3 4 if [[ -e $DOMAINTPM1/SimpleDomainService ]] 5 then 6 echo "$DOMAINTPM1/SimpleDomainService exists" 7 rm $DOMAINTPM1/SimpleDomainService/* 8 else 9 mkdir $DOMAINTPM1/SimpleDomainService 10 echo "$DOMAINTPM1/SimpleDomainService created" 11 fi 12 13 if [[ -e $DOMAINTPM1/SimpleClient ]] 14 then 15 echo "$DOMAINTPM1/SimpleClient exists" 16 rm $DOMAINTPM1/SimpleClient/* 17 else 18 mkdir $DOMAINTPM1/SimpleClient 19 echo "$DOMAINTPM1/SimpleClient created" 20 fi 21 22 if [[ -e $DOMAINTPM1/SimpleClientCpp ]] 23 then 24 echo "$DOMAINTPM1/SimpleClientCpp exists" 25 rm $DOMAINTPM1/SimpleClientCpp/* 26 else 27 mkdir $DOMAINTPM1/SimpleClientCpp 28 echo "$DOMAINTPM1/SimpleClientCpp created" 29 fi 30 31 if [[ -e $DOMAINTPM1/SimpleServer ]] 32 then 33 echo "$DOMAINTPM1/SimpleServer exists" 34 rm $DOMAINTPM1/SimpleServer/* 35 else 36 mkdir $DOMAINTPM1/SimpleServer 37 echo "$DOMAINTPM1/SimpleServer created" 38 fi 39 40 $BINPATH/tao domain init -tao_domain $DOMAINTPM1 -config_template $TEMPLATETPM1 -pub_domain_address "127.0.0.1" -pass xxx 41 42 # Replace with aiksigner? 43 $BINPATH/genaik -blob $DOMAINTPM1/aikblob 44 $BINPATH/aiksigner -aik_path $DOMAINTPM1/aikblob -policy_key_path $DOMAINTPM1 \ 45 -password xxx -output_file $DOMAINTPM1/aik_cert