uname -a
yum update kernel
/opt/intel/sgx-aesm-service입니다.yum install \\libsgx-ae-le libsgx-ae-pce libsgx-ae-qe3 libsgx-ae-qve \\libsgx-aesm-ecdsa-plugin libsgx-aesm-launch-plugin libsgx-aesm-pce-plugin libsgx-aesm-quote-ex-plugin \\libsgx-dcap-default-qpl libsgx-dcap-default-qpl-devel libsgx-dcap-ql libsgx-dcap-ql-devel \\libsgx-dcap-quote-verify libsgx-dcap-quote-verify-devel libsgx-enclave-common libsgx-enclave-common-devel libsgx-epid-devel \\libsgx-launch libsgx-launch-devel libsgx-pce-logic libsgx-qe3-logic libsgx-quote-ex libsgx-quote-ex-devel \\libsgx-ra-network libsgx-ra-uefi libsgx-uae-service libsgx-urts sgx-ra-service \\sgx-aesm-service -y
wget https://mia-1251783334.cos.ap-shanghai.myqcloud.com/sgx_linux_x64_sdk_2.23.100.2.bin -O sgx_linux_x64_sdk_2.23.100.2.binchmod +x ./sgx_linux_x64_sdk_2.23.100.2.bin./sgx_linux_x64_sdk_2.23.100.2.bin
./sgx_linux_x64_sdk를 실행할 때 설치 디렉터리를 선택해야 하며, 현재 디렉터리에 설치하지 않고 /opt/intel/에 설치하는 것이 좋습니다. 이때 Intel SGXSDK의 기본 설치 디렉터리는 /opt/intel/sgxsdk입니다. Intel SGXSDK 사용자 매뉴얼을 참조하여 SGX 프로그램을 개발할 수 있습니다.리전 | [Region-ID] |
베이징 | bj |
상하이 | sh |
광저우 | gz |
난징 | nj |
싱가포르 | sg |
/etc/sgx_default_qcnl.conf 파일을 수동으로 수정하십시오./etc/sgx_default_qcnl.conf이 자동 생성됩니다./etc/sgx_default_qcnl.conf은 rpm 패키지 libsgx-dcap-default-qpl에 속합니다. 그 형식은 toml 및 JSON 파일 두 가지 형식을 동시에 지원합니다. 아래에서는 두 가지 경우에 대한 구성 방법을 소개합니다./etc/sgx_default_qcnl.conf을 열고 pccs_url을 찾아 해당 줄을 다음과 같이 수정합니다:"pccs_url": "https://sgx-dcap-server-tc.[Region-ID].tencent.cn/sgx/certification/v4/"
"pccs_url": "https://sgx-dcap-server-tc.bj.tencent.cn/sgx/certification/v4/"
/etc/sgx_default_qcnl.conf를 사용하는 경우: VIM 에디터를 사용하여 /etc/sgx_default_qcnl.conf을 다음과 같이 수정합니다:# PCCS server addressPCCS_URL=https://sgx-dcap-server-tc.[Region-ID].tencent.cn/sgx/certification/v4/# To accept insecure HTTPS cert, set this option to FALSEUSE_SECURE_CERT=TRUE
# PCCS server addressPCCS_URL=https://sgx-dcap-server-tc.bj.tencent.cn/sgx/certification/v4/# To accept insecure HTTPS cert, set this option to FALSEUSE_SECURE_CERT=TRUE
/opt/intel/sgxsdk/SampleCode입니다. 이 예시에서 코드(SampleEnclave)의 효과는 설치된 SGXSDK의 정상 사용 여부와 SGX CVM 인스턴스의 보안 메모리 리소스 사용 가능 여부를 확인하기 위해 Enclave를 실행하는 것입니다.source /opt/intel/sgxsdk/environment
cd /opt/intel/sgxsdk/SampleCode/SampleEnclave && make
./app

source /opt/intel/sgxsdk/environment
cd /root && yum install git -y
git clone https://github.com/intel/SGXDataCenterAttestationPrimitives.gitgit checkout DCAP_1.20
cd /root/SGXDataCenterAttestationPrimitives/SampleCode/QuoteGenerationSample
make
./app
cd /root/SGXDataCenterAttestationPrimitives/SampleCode/QuoteVerificationSample && make
sgx_sign sign -key Enclave/Enclave_private_sample.pem -enclave enclave.so -out enclave.signed.so -config Enclave/Enclave.config.xmlsgx_sign sign -key ../QuoteGenerationSample/Enclave/Enclave_private_sample.pem -enclave enclave.so -out enclave.signed.so -config Enclave/Enclave.config.xml # DCAP_1.16 신규 버전 경로
./app

피드백