github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/go/apps/simpleexample/SimpleDomain/inittpm2domain (about)

     1  #
     2  source ./defines
     3  
     4  if [[ -e $DOMAINTPM2/SimpleDomainService ]]
     5  then
     6    echo "$DOMAINTPM2/SimpleDomainService exists"
     7    rm $DOMAINTPM2/SimpleDomainService/*
     8  else
     9    mkdir $DOMAINTPM2/SimpleDomainService
    10    echo "$DOMAINTPM2/SimpleDomainService created"
    11  fi
    12  
    13  if [[ -e $DOMAINTPM2/SimpleClient ]]
    14  then
    15    echo "$DOMAINTPM2/SimpleClient exists"
    16    rm $DOMAINTPM2/SimpleClient/*
    17  else
    18    mkdir $DOMAINTPM2/SimpleClient
    19    echo "$DOMAINTPM2/SimpleClient created"
    20  fi
    21  
    22  if [[ -e $DOMAINTPM2/SimpleClientCpp ]]
    23  then
    24    echo "$DOMAINTPM2/SimpleClientCpp exists"
    25    rm $DOMAINTPM2/SimpleClientCpp/*
    26  else
    27    mkdir $DOMAINTPM2/SimpleClientCpp
    28    echo "$DOMAINTPM2/SimpleClientCpp created"
    29  fi
    30  
    31  if [[ -e $DOMAINTPM2/SimpleServer ]]
    32  then
    33    echo "$DOMAINTPM2/SimpleServer exists"
    34    rm $DOMAINTPM2/SimpleServer/*
    35  else
    36    mkdir $DOMAINTPM2/SimpleServer
    37    echo "$DOMAINTPM2/SimpleServer created"
    38  fi
    39  
    40  $BINPATH/tao domain init -tao_domain $DOMAINTPM2 -config_template $TEMPLATETPM2 -pass xxx
    41  
    42  $BINPATH/Endorsement -policy_key_dir $DOMAINTPM2/policy_keys \
    43      -policy_key_password xxx -policy_key_is_ecdsa -endorsement_save_file $DOMAINTPM2/endorsement_cert
    44  $BINPATH/QuoteServer -pass xxx -path $DOMAINTPM2/policy_keys &
    45  echo -e "\nQuoteServer up and running\n"
    46  
    47  sleep 1
    48  $BINPATH/tao host init -tao_domain $DOMAINTPM2 -stacked -parent_type TPM2 -hosting process