<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Quoting Enclave not Launching in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Quoting-Enclave-not-Launching/m-p/1681091#M6346</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;could you please make sure the Intel SGX devices exist at&lt;SPAN data-teams="true"&gt; /dev/sgx*?&lt;BR /&gt;If yes, please provide the permissions of these devices.&lt;BR /&gt;Additionally, please provide in the list of groups of the user "&lt;EM class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;aesmd"&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN class="sub_section_element_selectors"&gt;.&lt;/SPAN&gt;&lt;EM class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN&gt;As you use Ubuntu 24.04, you do not need to install an Intel SGX driver - especially not the out-of-tree driver.&lt;BR /&gt;&lt;/SPAN&gt;Can you confirm that you did not install such a driver?&lt;BR /&gt;&lt;BR /&gt;The&amp;nbsp;QuoteGenerationSample tries to reach out to a collateral caching server, e.g., Intel PCCS.&lt;BR /&gt;When installed on the same machine, the default URL for Intel PCCS is&amp;nbsp;&lt;A href="https://localhost:8081," target="_blank" rel="noopener"&gt;https://localhost:8081, &lt;/A&gt;which you see in your log.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;A subscription to our attestation service (Intel® Tiber™ Trust Authority) is not necessary for quote generation. However, &lt;SPAN data-teams="true"&gt;Intel® Provisioning Certification Service (&lt;/SPAN&gt;Intel PCS) is used to receive a PCK Certificate for your machine during quote generation. Subscription to this service is optional. There is an anonymous endpoint, but it can be &lt;SPAN data-teams="true"&gt;throttled when too many requests come in at the same time.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Detailed steps to setup your environment can be found at &lt;A href="https://cc-enabling.trustedservices.intel.com/intel-tdx-enabling-guide/02/infrastructure_setup/" target="_blank" rel="noopener"&gt;https://cc-enabling.trustedservices.intel.com/intel-tdx-enabling-guide/02/infrastructure_setup/&lt;/A&gt; - for Intel TDX. The steps are pretty much the same for Intel SGX, so you can find a lot of information there.&lt;BR /&gt;Especially, you also need to follow one of the provided registration variants.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Benny&lt;/P&gt;</description>
    <pubDate>Mon, 07 Apr 2025 16:49:06 GMT</pubDate>
    <dc:creator>Benny_Intel</dc:creator>
    <dc:date>2025-04-07T16:49:06Z</dc:date>
    <item>
      <title>Quoting Enclave not Launching</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Quoting-Enclave-not-Launching/m-p/1680612#M6343</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am running on INTEL(R) XEON(R) GOLD 6548Y+ under Ubuntu 24.04 and have a problem interfacing with the quoting enclave. I will number my questions as I pose them to make it easier for you to respond.&lt;/P&gt;&lt;P&gt;The AESM daemon fails to launch the QE. From &lt;STRONG&gt;journalctl -u aesmd&lt;/STRONG&gt;:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;systemd[1]: Starting aesmd.service - Intel(R) Architectural Enclave Service Manager...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;groupadd[3039197]: group added to /etc/group: name=sgx_prv, GID=1011&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;groupadd[3039197]: group added to /etc/gshadow: name=sgx_prv&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;groupadd[3039197]: new group: name=sgx_prv, GID=1011&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;usermod[3039367]: add 'aesmd' to group 'sgx_prv'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;usermod[3039367]: add 'aesmd' to shadow group 'sgx_prv'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;usermod[3039396]: add 'aesmd' to group 'sgx'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;usermod[3039396]: add 'aesmd' to shadow group 'sgx'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;aesm_service[3039422]: aesm_service: warning: Turn to daemon. Use "--no-daemon" option to execute in foreground.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;systemd[1]: Started aesmd.service - Intel(R) Architectural Enclave Service Manager.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;aesm_service[3039432]: [error_driver2api sgx_enclave_common.cpp:280] Enclave not authorized to run, .e.g. provisioning enclave hosted in app without access rights to /dev&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;aesm_service[3039432]: [load_qe ../qe_logic.cpp:721] Error, call sgx_create_enclave QE fail [load_qe], SGXError:4004.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;aesm_service[3039432]: Failed to load QE3: 0x4004&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;aesm_service[3039432]: The server sock is 0x5ee419a48f90&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(1)&lt;/STRONG&gt; I assume that I should be able to launch the quoting enclave and obtain quotes from it even without subscribing to the Intel attestation service. Of course, the quotes will be meaningless without the verification collateral, but suppose I am just starting development and want to get a feel for how the system is supposed to work in the end. Am I right to assume this or does the QE need some token from Intel to be able to launch?&lt;/P&gt;&lt;P&gt;I can see that it was &lt;STRONG&gt;EACCES&lt;/STRONG&gt;&amp;nbsp;error that &lt;EM&gt;error_driver2api&lt;/EM&gt;&amp;nbsp;has translated in the log above. Now, in the kernel driver for Intel SGX, &lt;STRONG&gt;EACCES&lt;/STRONG&gt; is returned from the &lt;STRONG&gt;ENCLS[EINIT]&lt;/STRONG&gt;&amp;nbsp;ioctl (&lt;EM&gt;sgx_encl_init&lt;/EM&gt;) when enclave attributes are outside those explicitly allowed by the mask (&lt;EM&gt;linux-sgx/external/dcap_source/driver/linux/ioctl.c:532&lt;/EM&gt; or&lt;EM&gt; linux/arch/x86/kernel/cpu/sgx/ioctl.c:496&lt;/EM&gt;). The comment there speaks of the provisioning attribute &lt;STRONG&gt;SGX_ATTR_PROVISIONKEY&lt;/STRONG&gt;.&lt;BR /&gt;&lt;STRONG&gt;(2)&lt;/STRONG&gt; Could this be the reason for the failure?&lt;BR /&gt;&lt;STRONG&gt;(3)&lt;/STRONG&gt; Where is the quoting enclave found on the system? Is it &lt;EM&gt;/opt/intel/sgx-aesm-service/aesm/&lt;/EM&gt; (assume the default prefix for SGX, i.e., &lt;EM&gt;/opt/intel&lt;/EM&gt;)? There are two SO files there which look like quoting enclaves: &lt;EM&gt;libsgx_qe.signed.so&lt;/EM&gt;&amp;nbsp;and &lt;EM&gt;libsgx_qe3.signed.so&lt;/EM&gt;.&lt;BR /&gt;&lt;STRONG&gt;(4)&lt;/STRONG&gt; Why are there two? What is the difference? Is one for legacy EPID-based attestation and the other for ECDSA attestation?&lt;BR /&gt;&lt;STRONG&gt;(5)&lt;/STRONG&gt; Which one gets loaded by aesmd and how do I check that?&lt;BR /&gt;When checking with &lt;EM&gt;sgx_sign dump&lt;/EM&gt;, I can see that &lt;EM&gt;libsgx_qe3.signed.so&lt;/EM&gt;&amp;nbsp;has attribute &lt;STRONG&gt;SGX_ATTR_PROVISIONKEY&lt;/STRONG&gt;&amp;nbsp;(0x10) set whereas &lt;EM&gt;libsgx_qe.signed.so&lt;/EM&gt; does not, which makes me think &lt;EM&gt;libsgx_qe3.signed.so&lt;/EM&gt; corresponds to ECDSA-based attestation as it is supposed to interface with the PCE and "&lt;EM&gt;the PCE will only honor requests from enclaves with ATTRIBUTES.PROVISIONKEY set to 1&lt;/EM&gt;" as said in [1, 3.1.1.1].&lt;BR /&gt;&lt;STRONG&gt;(6)&lt;/STRONG&gt; Could it be that is failing because this attribute is set and not explicitly allowed in the kernel driver. It seems &lt;STRONG&gt;SGX_ATTR_PROVISIONKEY&lt;/STRONG&gt;&amp;nbsp;is only set in &lt;EM&gt;sgx_ioc_enclave_provision&lt;/EM&gt;&amp;nbsp;(&lt;EM&gt;linux-sgx/external/dcap_source/driver/linux/ioctl.c:707&lt;/EM&gt;). Is there an ioctl call missing in AESM daemon that would set this attribute and enable the launch?&lt;/P&gt;&lt;P&gt;Any tips on how to debug this further would be greatly appreciated.&lt;/P&gt;&lt;P&gt;I also tried running the example in &lt;EM&gt;SGXDataCenterAttestationPrimitives/SampleCode/QuoteGenerationSample&lt;/EM&gt;. When running without &lt;STRONG&gt;SGX_AESM_ADDR&lt;/STRONG&gt;, i.e., in in-proc mode, it times out waiting for some response from localhost:8081:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;[QCNL] Info: Fetching from the local cache for: '&lt;A href="https://localhost:8081/sgx/certification/v4/pckcert?qeid=3D3FD702814ADA8CA24173377265D48E&amp;amp;cpusvn=0202191B03FF00060000000000000000&amp;amp;pcesvn=1000&amp;amp;pceid=0000" target="_blank"&gt;https://localhost:8081/sgx/certification/v4/pckcert?qeid=3D3FD702814ADA8CA24173377265D48E&amp;amp;cpusvn=0202191B03FF00060000000000000000&amp;amp;pcesvn=1000&amp;amp;pceid=0000&lt;/A&gt;' &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[QCNL] Info: Cache missed. &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[QCNL] Info: Data not found in local cache. Trying to fetch response from remote URL: '&lt;A href="https://localhost:8081/sgx/certification/v4/" target="_blank"&gt;https://localhost:8081/sgx/certification/v4/&lt;/A&gt;'.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(7)&lt;/STRONG&gt; What is supposed to be listening on that port? (Nothing currently is.)&lt;BR /&gt;&lt;STRONG&gt;(8)&lt;/STRONG&gt; Is it supposed to be the AESM daemon?&lt;BR /&gt;&lt;STRONG&gt;(9)&lt;/STRONG&gt; Or should my own caching service, as described in DCAP documents, be running there?&lt;BR /&gt;&lt;STRONG&gt;(10)&lt;/STRONG&gt; Or maybe the address is wrong and it can be set somehow (via a config file? where?) to point to an Intel-provided service, like the attestation service API?&lt;BR /&gt;&lt;STRONG&gt;(11)&lt;/STRONG&gt; What is the difference between certification v1, v2, v3, and v4? v1 is EOL, so I suppose it corresponds to EPID attestation (now deprecated), but v2-v4?&lt;BR /&gt;&lt;STRONG&gt;(12)&lt;/STRONG&gt; E.g., why is subscription optional for v4 GET PCK Certificate API?&lt;/P&gt;&lt;P&gt;When running the &lt;EM&gt;QuoteGenerationSample&lt;/EM&gt; with &lt;STRONG&gt;SGX_AESM_ADDR=1&lt;/STRONG&gt;, i.e., in out-of-proc mode, it fails at &lt;EM&gt;sgx_qe_get_target_info&lt;/EM&gt;&amp;nbsp;with error 0xe042, a timeout:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;[APP] Step1: Call sgx_qe_get_target_info:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DEBUG: [sgx_qe_get_target_info ../sgx_dcap_ql_wrapper.cpp:399] Required pub key id size is: 32&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DEBUG: [sgx_qe_get_target_info ../sgx_dcap_ql_wrapper.cpp:406] Call sgx_init_quote_ex - second with allocated pub_key_id_buffer.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Error: [sgx_qe_get_target_info ../sgx_dcap_ql_wrapper.cpp:412] Error in sgx_init_quote_ex. 0xe042&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Error in sgx_qe_get_target_info. 0xe042&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(13)&lt;/STRONG&gt; I suppose this is because it is reaching out to the AESM daemon which has failed (?), i.e., it is running but failed to launch the enclave. Is this right?&lt;/P&gt;&lt;P&gt;I would greatly appreciate it if you answered all the questions and provided some next steps on how to debug and resolve this issue?&lt;/P&gt;&lt;P&gt;Please also point me to the relevant documentation or other resources I may have missed, as most of the documentation I found on DCAP and ECDSA attestation was very high-level and took access to the QE for granted.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;References:&lt;BR /&gt;[1] &lt;A href="https://www.intel.com/content/dam/develop/external/us/en/documents/intel-sgx-support-for-third-party-attestation-801017.pdf" target="_blank"&gt;https://www.intel.com/content/dam/develop/external/us/en/documents/intel-sgx-support-for-third-party-attestation-801017.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Apr 2025 12:42:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Quoting-Enclave-not-Launching/m-p/1680612#M6343</guid>
      <dc:creator>Oktopus</dc:creator>
      <dc:date>2025-04-05T12:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Quoting Enclave not Launching</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Quoting-Enclave-not-Launching/m-p/1681091#M6346</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;could you please make sure the Intel SGX devices exist at&lt;SPAN data-teams="true"&gt; /dev/sgx*?&lt;BR /&gt;If yes, please provide the permissions of these devices.&lt;BR /&gt;Additionally, please provide in the list of groups of the user "&lt;EM class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;aesmd"&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN class="sub_section_element_selectors"&gt;.&lt;/SPAN&gt;&lt;EM class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN&gt;As you use Ubuntu 24.04, you do not need to install an Intel SGX driver - especially not the out-of-tree driver.&lt;BR /&gt;&lt;/SPAN&gt;Can you confirm that you did not install such a driver?&lt;BR /&gt;&lt;BR /&gt;The&amp;nbsp;QuoteGenerationSample tries to reach out to a collateral caching server, e.g., Intel PCCS.&lt;BR /&gt;When installed on the same machine, the default URL for Intel PCCS is&amp;nbsp;&lt;A href="https://localhost:8081," target="_blank" rel="noopener"&gt;https://localhost:8081, &lt;/A&gt;which you see in your log.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;A subscription to our attestation service (Intel® Tiber™ Trust Authority) is not necessary for quote generation. However, &lt;SPAN data-teams="true"&gt;Intel® Provisioning Certification Service (&lt;/SPAN&gt;Intel PCS) is used to receive a PCK Certificate for your machine during quote generation. Subscription to this service is optional. There is an anonymous endpoint, but it can be &lt;SPAN data-teams="true"&gt;throttled when too many requests come in at the same time.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Detailed steps to setup your environment can be found at &lt;A href="https://cc-enabling.trustedservices.intel.com/intel-tdx-enabling-guide/02/infrastructure_setup/" target="_blank" rel="noopener"&gt;https://cc-enabling.trustedservices.intel.com/intel-tdx-enabling-guide/02/infrastructure_setup/&lt;/A&gt; - for Intel TDX. The steps are pretty much the same for Intel SGX, so you can find a lot of information there.&lt;BR /&gt;Especially, you also need to follow one of the provided registration variants.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Benny&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 16:49:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Quoting-Enclave-not-Launching/m-p/1681091#M6346</guid>
      <dc:creator>Benny_Intel</dc:creator>
      <dc:date>2025-04-07T16:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Quoting Enclave not Launching</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Quoting-Enclave-not-Launching/m-p/1681114#M6347</link>
      <description>&lt;P&gt;Hi Benny,&lt;/P&gt;&lt;P&gt;Thanks for taking the time. The following SGX devices are visible (+ symlinks in &lt;EM&gt;/dev/sgx/&lt;/EM&gt;, all with maximum permissions):&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;crw-rw---- 1 root sgx 10, 125 Apr 7 11:25 /dev/sgx_enclave&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;crw-rw---- 1 root sgx_prv 10, 126 Apr 7 11:25 /dev/sgx_provision&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;crw-rw---- 1 root sgx 10, 124 Apr 7 11:25 /dev/sgx_vepc&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;User&amp;nbsp;&lt;EM&gt;aesmd&lt;/EM&gt; is a member of the following groups:&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;aesmd&lt;/EM&gt;&lt;/STRONG&gt;,&lt;STRONG&gt;&lt;EM&gt; sgx&lt;/EM&gt;&lt;/STRONG&gt;, and&lt;EM&gt;&lt;STRONG&gt; sgx_prv&lt;/STRONG&gt;&lt;/EM&gt;, so, in particular, it seems it should have read and write access to all SGX devices under&amp;nbsp;&lt;EM&gt;/dev&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;I did not install out-of-tree drivers, only the userspace DCAP SDK.&amp;nbsp;&lt;STRONG&gt;lsmod&lt;/STRONG&gt; does not show anything SGX-related.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(1)&lt;/STRONG&gt;&amp;nbsp;Where can I find Intel PCCS? I see it was removed from the DCAP repo with &lt;A href="https://github.com/intel/SGXDataCenterAttestationPrimitives/releases/tag/DCAP_1.22" target="_self"&gt;release&amp;nbsp;1.22&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Also, all this reaching out to collateral caching service is happening as part of the&amp;nbsp;&lt;EM&gt;sgx_qe_get_target_info&lt;/EM&gt; call. &lt;STRONG&gt;(2)&lt;/STRONG&gt;&amp;nbsp;Could you explain what is exactly is happening in this call step by step? I was under the impression that it only loads the QE (or reaches out to it via the AESM daemon) and the QE responds with its &lt;EM&gt;sgx_target_info_t&lt;/EM&gt; structure (its MRENCLAVE, etc.). In other words, I assumed that target info is hardware-derived and the collateral (cert chain, CRL, etc.) is fetched independently by the relying party. I see that my assumption was wrong and it's all done together by this one function, but I still do not see the bigger picture of how this flow works. Could you elaborate?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(3)&lt;/STRONG&gt;&amp;nbsp;Do I understand you correctly that there is an open endpoint that anyone can just reach out to at any time and obtain the attestation collateral, i.e., at least the PCK Certificate? In other words: I can have my machine reach out to this endpoint without prior registration/subscription/licensing and get a certificate for my Provisioning Enclave, which then issues certificates for the Quoting Enclaves thus establishing the trust chain? And subscription is only to get a dedicated endpoint ("preferential" treatment, if you allow me, for subscribing clients)? Is my understanding correct?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(4)&lt;/STRONG&gt;&amp;nbsp;Could you explain the difference between v2, v3, v4 GET PCK Certificate APIs? Are v2-v3 only supported for backward compatibility for legacy clients or is there a qualitative distinction between the different versions and a reason to use anything other than v4?&lt;/P&gt;&lt;P&gt;Thanks for linking the guide on TDX/SGX environment setup. I am sure it will clear up many things for me.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 17:24:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Quoting-Enclave-not-Launching/m-p/1681114#M6347</guid>
      <dc:creator>Oktopus</dc:creator>
      <dc:date>2025-04-07T17:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Quoting Enclave not Launching</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Quoting-Enclave-not-Launching/m-p/1681406#M6348</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Thank you for providing the information about /dev. This all looks good.&lt;BR /&gt;&lt;BR /&gt;What (installation) steps did you execute leading to the aesmd log entry "&lt;EM class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;Enclave not authorized to run, .e.g. provisioning enclave hosted in app without access rights to /dev&amp;gt;"&lt;/SPAN&gt;&lt;/EM&gt;?&lt;BR /&gt;Can you reproduce it yourself on a fresh machine?&lt;BR /&gt;&lt;BR /&gt;Your other questions:&lt;BR /&gt;(1) Please use PCCS as provided in an older branch of the repo (e.g.,&amp;nbsp; by&amp;nbsp;&lt;A href="https://github.com/intel/SGXDataCenterAttestationPrimitives/tree/DCAP_1.21/QuoteGeneration/pccs" target="_blank"&gt;https://github.com/intel/SGXDataCenterAttestationPrimitives/tree/DCAP_1.21/QuoteGeneration/pccs&lt;/A&gt;). Our Intel TDX Enabling guide also described how to install it using this version at Ubuntu 24.04 (&lt;A href="https://cc-enabling.trustedservices.intel.com/intel-tdx-enabling-guide/02/infrastructure_setup/#provisioning-certificate-caching-service-pccs" target="_blank"&gt;https://cc-enabling.trustedservices.intel.com/intel-tdx-enabling-guide/02/infrastructure_setup/#provisioning-certificate-caching-service-pccs&lt;/A&gt;).&lt;BR /&gt;&lt;BR /&gt;(2) Details of the DCAP library can be found in &lt;A href="https://download.01.org/intel-sgx/latest/dcap-latest/linux/docs/Intel_SGX_ECDSA_QuoteLibReference_DCAP_API.pdf" target="_blank"&gt;https://download.01.org/intel-sgx/latest/dcap-latest/linux/docs/Intel_SGX_ECDSA_QuoteLibReference_DCAP_API.pdf&lt;/A&gt;. &lt;BR /&gt;&lt;BR /&gt;(3) Intel PCS is used to provide quote generation collateral, e.g., PCK Cert, and quote verification collateral, e.g., TCB Info, SGX QE Identity, Revocation list. At the moment, every collateral can be retrieved without any registration/subscription/licensing. However, PCK Cert retrieval should be used with a subscription for&amp;nbsp;"preferential" treatment. &lt;BR /&gt;&lt;BR /&gt;Please adhere to the terms of use of Intel PCS (&lt;A href="https://api.portal.trustedservices.intel.com/termsAndConditions" target="_blank"&gt;https://api.portal.trustedservices.intel.com/termsAndConditions&lt;/A&gt;) stating collateral caching is required.&lt;BR /&gt;&lt;BR /&gt;Note that "platform registration" as described at&amp;nbsp;&lt;A href="https://cc-enabling.trustedservices.intel.com/intel-tdx-enabling-guide/02/infrastructure_setup/#platform-registration" target="_blank"&gt;https://cc-enabling.trustedservices.intel.com/intel-tdx-enabling-guide/02/infrastructure_setup/#platform-registration&lt;/A&gt;&amp;nbsp;is still necessary, before a PCK Cert can be retrieved.&lt;BR /&gt;&lt;BR /&gt;(4) Yes, v2-v3 APIs are only there for backward compatibility. Please use v4. A guide about the differences between v3 and v4 can be found at &lt;A href="https://api.trustedservices.intel.com/documents/PCS_V3-V4_migration_guide.pdf" target="_blank"&gt;https://api.trustedservices.intel.com/documents/PCS_V3-V4_migration_guide.pdf&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Benny&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 14:19:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Quoting-Enclave-not-Launching/m-p/1681406#M6348</guid>
      <dc:creator>Benny_Intel</dc:creator>
      <dc:date>2025-04-08T14:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Quoting Enclave not Launching</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Quoting-Enclave-not-Launching/m-p/1684858#M6352</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks to your help, I got both in-proc and out-of-proc quote generation (and in fact quote verification as well) working. It seems the only problem was the missing PCCS service.&lt;/P&gt;&lt;P&gt;The enclave launch error in &lt;EM&gt;aesmd&lt;/EM&gt; was unrelated. It seems that after a reboot, aesmd has successfully loaded the enclave (the error is seen only once in the system journal). As a side note, how can I confirm that? It has device &lt;EM&gt;/dev/sgx_enclave&lt;/EM&gt; open, but is there a way to identify which enclaves were successfully launched by a process?&lt;/P&gt;&lt;P&gt;Anyway, the &lt;EM&gt;aesmd&lt;/EM&gt; is live and provides service.&lt;/P&gt;&lt;P&gt;If it is of any interest to you, I believe &lt;EM&gt;aesmd&lt;/EM&gt; was provided with the OS already. I reproduced the error log on a fresh machine. If you would like, I can run some extra steps to investigate the issue, but my original problem is resolved.&lt;/P&gt;&lt;P&gt;Thanks again &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 16:48:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Quoting-Enclave-not-Launching/m-p/1684858#M6352</guid>
      <dc:creator>Oktopus</dc:creator>
      <dc:date>2025-04-23T16:48:52Z</dc:date>
    </item>
  </channel>
</rss>

