@@ -23,7 +23,7 @@ RUN apt-get update && \
2323# SGX SDK is installed in /opt/intel directory.
2424WORKDIR /opt/intel
2525
26- ARG DCAP_VERSION=DCAP_1.17
26+ ARG DCAP_VERSION=DCAP_1.18
2727
2828RUN echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-sgx.gpg] https://download.01.org/intel-sgx/sgx_repo/ubuntu jammy main" | \
2929 tee -a /etc/apt/sources.list.d/intel-sgx.list \
@@ -32,11 +32,12 @@ RUN echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-sgx.gpg] https://d
3232 && apt-get update \
3333 && env DEBIAN_FRONTEND=noninteractive apt-get install -y \
3434 libsgx-dcap-ql-dev \
35+ libsgx-dcap-quote-verify-dev \
3536 libsgx-dcap-default-qpl-dev \
3637 libsgx-quote-ex-dev
3738
3839# Install SGX SDK
39- ARG SGX_SDK_URL=https://download.01.org/intel-sgx/sgx-linux/2.20 /distro/ubuntu22.04-server/sgx_linux_x64_sdk_2.20 .100.4 .bin
40+ ARG SGX_SDK_URL=https://download.01.org/intel-sgx/sgx-linux/2.21 /distro/ubuntu22.04-server/sgx_linux_x64_sdk_2.21 .100.1 .bin
4041RUN wget ${SGX_SDK_URL} \
4142 && export SGX_SDK_INSTALLER=$(basename $SGX_SDK_URL) \
4243 && chmod +x $SGX_SDK_INSTALLER \
@@ -55,6 +56,12 @@ RUN cd SGXDataCenterAttestationPrimitives/SampleCode/QuoteGenerationSample \
5556 && make \
5657 && cd -
5758
59+ RUN cd SGXDataCenterAttestationPrimitives/SampleCode/QuoteVerificationSample \
60+ && . /opt/intel/sgxsdk/environment \
61+ && make HW_RELEASE=1 \
62+ && sgx_sign sign -key ../QuoteGenerationSample/Enclave/Enclave_private_sample.pem -enclave enclave.so -out enclave.signed.so -config Enclave/Enclave.config.xml \
63+ && cd -
64+
5865FROM ubuntu:22.04
5966
6067RUN apt-get update && \
@@ -75,6 +82,7 @@ RUN echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-sgx.gpg] https://d
7582 libsgx-dcap-ql \
7683 libsgx-dcap-default-qpl \
7784 && mkdir -p /opt/intel/sgx-sample-app/ \
85+ && mkdir -p /opt/intel/sgx-quote-verification/ \
7886 && mkdir -p /opt/intel/sgx-quote-generation/
7987
8088COPY --from=builder /opt/intel/sgxsdk/SampleCode/SampleEnclave/app /opt/intel/sgx-sample-app/sgx-sample-app
@@ -83,4 +91,9 @@ COPY --from=builder /opt/intel/sgxsdk/SampleCode/SampleEnclave/enclave.signed.so
8391COPY --from=builder /opt/intel/SGXDataCenterAttestationPrimitives/SampleCode/QuoteGenerationSample/app /opt/intel/sgx-quote-generation/sgx-quote-generation
8492COPY --from=builder /opt/intel/SGXDataCenterAttestationPrimitives/SampleCode/QuoteGenerationSample/enclave.signed.so /opt/intel/sgx-quote-generation/enclave.signed.so
8593
94+ COPY --from=builder /opt/intel/SGXDataCenterAttestationPrimitives/SampleCode/QuoteVerificationSample/app /opt/intel/sgx-quote-verification/sgx-quote-verification
95+ COPY --from=builder /opt/intel/SGXDataCenterAttestationPrimitives/SampleCode/QuoteVerificationSample/enclave.signed.so /opt/intel/sgx-quote-verification/enclave.signed.so
96+
97+ COPY --chmod=555 run-dcap-flow /opt/intel
98+
8699ENTRYPOINT /opt/intel/sgx-sample-app/sgx-sample-app
0 commit comments