Skip to content

Commit

Permalink
update pccs url (#1871)
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor-malene authored Apr 10, 2024
1 parent e994ee2 commit f7fef30
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions go/enclave/main/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,11 @@ if [ ! -L /dev/sgx/enclave ]; then
ln -s /dev/sgx_enclave /dev/sgx/enclave
fi

# If the PCCS_ADDR, the host is provided
# Do not use the default PCCS_URL defined in /etc/sgx_default_qcnl.conf
# Particularly used in Alibaba cloud
if [ -n "${PCCS_ADDR}" ]; then
PCCS_URL=https://${PCCS_ADDR}/sgx/certification/v3/
fi
PCCS_URL=https://global.acccache.azure.net/sgx/certification/v4/
echo "PCCS_URL: ${PCCS_URL}"

# Install the libsgx-dcap-default-qpl and redefine /etc/sgx_default_qcnl.conf (Alibaba)
if [ -n "${PCCS_URL}" ]; then
apt-get install -qq libsgx-dcap-default-qpl
echo "PCCS_URL: ${PCCS_URL}"
echo "PCCS_URL=${PCCS_URL}\nUSE_SECURE_CERT=FALSE" > /etc/sgx_default_qcnl.conf
else
# Otherwise use the Azure library
apt-get install -qq az-dcap-client
fi
apt-get install -qq libsgx-dcap-default-qpl

echo "PCCS_URL=${PCCS_URL}\nUSE_SECURE_CERT=FALSE" > /etc/sgx_default_qcnl.conf

"$@"

0 comments on commit f7fef30

Please sign in to comment.