mirror of
https://github.com/corda/corda.git
synced 2024-12-27 08:22:35 +00:00
c3f5ca41e1
* ENT-319 Enclave to help test Intel signing key * Update build files to allow for release builds * Strip debug information from release binaries * Move sign_helper and update references * Remove paragraph from README * Two dev modes (simulation and HSM) * Update make files to take mode and single build directory * Update reference to self-sign key * Build script: from_clean.sh * Fix bad ref to docker-minimal
24 lines
1.0 KiB
Bash
24 lines
1.0 KiB
Bash
#!/bin/bash
|
|
|
|
set -xeuo
|
|
|
|
docker rm $(docker ps -a -q) || true
|
|
docker rmi $(docker images -a -q) || true
|
|
docker build -t minimal ../dependencies/docker-minimal
|
|
|
|
bash ../run_in_image.sh minimal make -C sgx-jvm linux-sgx/build/linux/aesm_service
|
|
#bash ../run_in_image.sh minimal make -C sgx-jvm/simple-enclave MODE=Debug unsigned
|
|
bash ../run_in_image.sh minimal make -C sgx-jvm/simple-enclave MODE=Release unsigned
|
|
bash ../run_in_image.sh minimal ./gradlew sgx-jvm/hsm-tool:jar
|
|
ke
|
|
java -jar ../hsm-tool/build/libs/sgx-jvm/hsm-tool-1.0-SNAPSHOT.jar --mode=Sign --source=build/simple_enclave_blob_to_sign.bin --signature=build/simple_enclave.signature.hsm.sha256 --pubkey=build/hsm.public.pem --profile=dev_hsm
|
|
|
|
bash ../run_in_image.sh minimal make -C sgx-jvm/simple-enclave sigstruct-hsm
|
|
bash ../run_in_image.sh minimal make -C sgx-jvm/simple-enclave simple_test
|
|
bash ../with_isgx.sh bash ../with_aesmd.sh bash ../with_ld_library_path.sh simple-enclave/build/simple_test simple-enclave/build/simple_enclave.signed.hsm.so
|
|
|
|
# Dev Cards:
|
|
# ADMIN_CARD
|
|
# SGX_CARD_A
|
|
# SGX_CARD_B
|