@@ -23,7 +23,7 @@ RUN apt-get update && \
23
23
# SGX SDK is installed in /opt/intel directory.
24
24
WORKDIR /opt/intel
25
25
26
- ARG DCAP_VERSION=DCAP_1.17
26
+ ARG DCAP_VERSION=DCAP_1.18
27
27
28
28
RUN echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-sgx.gpg] https://download.01.org/intel-sgx/sgx_repo/ubuntu jammy main" | \
29
29
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
32
32
&& apt-get update \
33
33
&& env DEBIAN_FRONTEND=noninteractive apt-get install -y \
34
34
libsgx-dcap-ql-dev \
35
+ libsgx-dcap-quote-verify-dev \
35
36
libsgx-dcap-default-qpl-dev \
36
37
libsgx-quote-ex-dev
37
38
38
39
# 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
40
41
RUN wget ${SGX_SDK_URL} \
41
42
&& export SGX_SDK_INSTALLER=$(basename $SGX_SDK_URL) \
42
43
&& chmod +x $SGX_SDK_INSTALLER \
@@ -55,6 +56,12 @@ RUN cd SGXDataCenterAttestationPrimitives/SampleCode/QuoteGenerationSample \
55
56
&& make \
56
57
&& cd -
57
58
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
+
58
65
FROM ubuntu:22.04
59
66
60
67
RUN apt-get update && \
@@ -75,6 +82,7 @@ RUN echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-sgx.gpg] https://d
75
82
libsgx-dcap-ql \
76
83
libsgx-dcap-default-qpl \
77
84
&& mkdir -p /opt/intel/sgx-sample-app/ \
85
+ && mkdir -p /opt/intel/sgx-quote-verification/ \
78
86
&& mkdir -p /opt/intel/sgx-quote-generation/
79
87
80
88
COPY --from=builder /opt/intel/sgxsdk/SampleCode/SampleEnclave/app /opt/intel/sgx-sample-app/sgx-sample-app
@@ -83,4 +91,7 @@ COPY --from=builder /opt/intel/sgxsdk/SampleCode/SampleEnclave/enclave.signed.so
83
91
COPY --from=builder /opt/intel/SGXDataCenterAttestationPrimitives/SampleCode/QuoteGenerationSample/app /opt/intel/sgx-quote-generation/sgx-quote-generation
84
92
COPY --from=builder /opt/intel/SGXDataCenterAttestationPrimitives/SampleCode/QuoteGenerationSample/enclave.signed.so /opt/intel/sgx-quote-generation/enclave.signed.so
85
93
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
+
86
97
ENTRYPOINT /opt/intel/sgx-sample-app/sgx-sample-app
0 commit comments