Lines Matching refs:tmp_dir
37 local tmp_dir="$1"
39 echo "${x509_genkey_content}" > ${tmp_dir}/x509.genkey
42 -batch -x509 -config ${tmp_dir}/x509.genkey \
43 -outform PEM -out ${tmp_dir}/signing_key.pem \
44 -keyout ${tmp_dir}/signing_key.pem 2>&1
46 openssl x509 -in ${tmp_dir}/signing_key.pem -out \
47 ${tmp_dir}/signing_key.der -outform der
49 key_id=$(cat ${tmp_dir}/signing_key.der | keyctl padd asymmetric ebpf_testing_key @s)
56 local tmp_dir="$1"
60 rm -rf ${tmp_dir}
81 local tmp_dir="$2"
83 [[ ! -d "${tmp_dir}" ]] && echo "Directory ${tmp_dir} doesn't exist" && exit 1
86 setup "${tmp_dir}"
88 cleanup "${tmp_dir}"