-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup_env.sh
executable file
·22 lines (16 loc) · 1.02 KB
/
setup_env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
cargo build --bin dpu-runtime-manager
RUST_LOG=info cargo run --bin dpu-runtime-manager -- --measurement e0f3a02f9f3c85caf8a4753723d7e50ee0f3a02f9f3c85caf8a4753723d7e50e --port 6666 &
RUST_LOG=info cargo run --bin dpu-runtime-manager -- --measurement e0f3a02f9f3c85caf8a4753723d7e50ee0f3a02f9f3c85caf8a4753723d7e50f --port 6667 &
mkdir -p /tmp/dpu;
cd /tmp/dpu;
openssl ecparam -name prime256v1 -noout -genkey > CAKey.pem
openssl req -x509 -key CAKey.pem -out CACert.pem -config /work/docker/ca-cert.conf
VTS_PATH="/opt/veraison/vts"
PROVISIONING_PATH="/opt/veraison/provisioning"
PAS_PATH="/opt/veraison/proxy_attestation_server"
cd /opt/veraison/vts && /opt/veraison/vts/vts &
cd /opt/veraison/provisioning && /opt/veraison/provisioning/provisioning &
cd /tmp/dpu && /opt/veraison/proxy_attestation_server -l 127.0.0.1:3010 &
cd -
sleep 5
curl -X POST -H 'Content-Type: application/corim-unsigned+cbor; profile=http://arm.com/psa/iot/1' --data-binary "@/opt/veraison/psa_corim.cbor" localhost:8888/endorsement-provisioning/v1/submit