<?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 thanks for your answer Scott. in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/local-attestation-not-working/m-p/1141867#M2281</link>
    <description>&lt;P&gt;thanks for your answer Scott.&lt;/P&gt;&lt;P&gt;i request white-list for studying but answer is no :(&amp;nbsp;&lt;/P&gt;&lt;P&gt;anyway when i run app with debug mode, there is no public key file.&lt;/P&gt;&lt;P&gt;when i create file ,&amp;nbsp;The &lt;STRONG&gt;public key&lt;/STRONG&gt; and &lt;STRONG&gt;enclave's hash value&lt;/STRONG&gt; that&amp;nbsp;signed by the private key should be present, but there is no pem file in the debug directory.&lt;/P&gt;&lt;P&gt;only this file on debug folder :&lt;/P&gt;&lt;P&gt;Enclave1.dll&amp;nbsp;&amp;nbsp;Enclave1.exp&amp;nbsp; Enclave1.lib&amp;nbsp;&amp;nbsp;Enclave1.pdb&amp;nbsp;&amp;nbsp;Enclave1.signed.dll&amp;nbsp;&amp;nbsp;Project1.exe&amp;nbsp;&amp;nbsp;Project1.ilk&amp;nbsp;&amp;nbsp;Project1.pdb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. does debug mode not support making public key and enclave's hash?&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;How can I know from the user's point of view that the program is running on sgx?&lt;/P&gt;&lt;P&gt;thanks :)&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jan 2019 04:12:00 GMT</pubDate>
    <dc:creator>sang__oh</dc:creator>
    <dc:date>2019-01-29T04:12:00Z</dc:date>
    <item>
      <title>local attestation not working</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/local-attestation-not-working/m-p/1141865#M2279</link>
      <description>&lt;P&gt;i want make release version my app. the simple test version. (https://software.intel.com/en-us/forums/intel-software-guard-extensions-intel-sgx/topic/802697)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i print&amp;nbsp;SGX_DEBUG_FLAG on release mode, the value still 1,&lt;/P&gt;&lt;P&gt;so&amp;nbsp;&amp;nbsp;i set&amp;nbsp;&amp;nbsp;sgx_create_enclave(ENCLAVE_FILE, 0, &amp;amp;token, &amp;amp;updated, &amp;amp;eid, NULL);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;Enclave1.config.xml -&amp;nbsp;&amp;lt;DisableDebug&amp;gt;1&amp;lt;/DisableDebug&amp;gt;&amp;nbsp; but&amp;nbsp;there is 'SGX_ERROR_SERVICE_INVALID_PRIVILEGE' error.&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/en-us/sgx-sdk-dev-reference-local-attestation,&amp;nbsp;local" target="_blank"&gt;https://software.intel.com/en-us/sgx-sdk-dev-reference-local-attestation,&amp;nbsp;local&lt;/A&gt; attestation does not require whitelist.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. does simple app(abovelink ,&amp;nbsp;topic/802697 ) needs whitelist?&lt;/P&gt;&lt;P&gt;2. if not needs, how can i run app with release mode?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your helping :)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 12:07:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/local-attestation-not-working/m-p/1141865#M2279</guid>
      <dc:creator>sang__oh</dc:creator>
      <dc:date>2019-01-28T12:07:02Z</dc:date>
    </item>
    <item>
      <title>Hi Oh.</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/local-attestation-not-working/m-p/1141866#M2280</link>
      <description>&lt;P&gt;Hi Oh.&lt;/P&gt;&lt;P&gt;Any enclave, simple or otherwise, needs to be whitelisted to be able to be launched in production/release mode.&amp;nbsp; Without whitelisting, you can only launch in debug or pre-release mode.&amp;nbsp; More info at the link below, if interested:&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/en-us/blogs/2016/01/07/intel-sgx-debug-production-prelease-whats-the-difference"&gt;https://software.intel.com/en-us/blogs/2016/01/07/intel-sgx-debug-production-prelease-whats-the-difference&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 12:13:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/local-attestation-not-working/m-p/1141866#M2280</guid>
      <dc:creator>Scott_R_Intel</dc:creator>
      <dc:date>2019-01-28T12:13:55Z</dc:date>
    </item>
    <item>
      <title>thanks for your answer Scott.</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/local-attestation-not-working/m-p/1141867#M2281</link>
      <description>&lt;P&gt;thanks for your answer Scott.&lt;/P&gt;&lt;P&gt;i request white-list for studying but answer is no :(&amp;nbsp;&lt;/P&gt;&lt;P&gt;anyway when i run app with debug mode, there is no public key file.&lt;/P&gt;&lt;P&gt;when i create file ,&amp;nbsp;The &lt;STRONG&gt;public key&lt;/STRONG&gt; and &lt;STRONG&gt;enclave's hash value&lt;/STRONG&gt; that&amp;nbsp;signed by the private key should be present, but there is no pem file in the debug directory.&lt;/P&gt;&lt;P&gt;only this file on debug folder :&lt;/P&gt;&lt;P&gt;Enclave1.dll&amp;nbsp;&amp;nbsp;Enclave1.exp&amp;nbsp; Enclave1.lib&amp;nbsp;&amp;nbsp;Enclave1.pdb&amp;nbsp;&amp;nbsp;Enclave1.signed.dll&amp;nbsp;&amp;nbsp;Project1.exe&amp;nbsp;&amp;nbsp;Project1.ilk&amp;nbsp;&amp;nbsp;Project1.pdb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. does debug mode not support making public key and enclave's hash?&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;How can I know from the user's point of view that the program is running on sgx?&lt;/P&gt;&lt;P&gt;thanks :)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 04:12:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/local-attestation-not-working/m-p/1141867#M2281</guid>
      <dc:creator>sang__oh</dc:creator>
      <dc:date>2019-01-29T04:12:00Z</dc:date>
    </item>
    <item>
      <title>Hi Oh.</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/local-attestation-not-working/m-p/1141868#M2282</link>
      <description>&lt;P&gt;Hi Oh.&lt;/P&gt;&lt;P&gt;I don't quite understand what you're asking in question 1, but maybe this will help...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since you appear to be using Windows, you should use the Visual Studio "Add New Intel(r) SGX Enclave Project" wizard...&amp;nbsp; this automatically generates the private .pem key for you.&amp;nbsp; It will not be located in the output directory, but rather in the same folder with your enclave source and project files.&amp;nbsp; The Wizard also creates build steps to automatically sign the enclave during the compile/build process.&amp;nbsp; It makes things a lot easier.&lt;/P&gt;&lt;P&gt;But, if you prefer to do it manually, you can create your own private key using OpenSSL.&amp;nbsp; It just needs to be a 3072 bit RSA key, public exponent 3.&amp;nbsp; Once you've installed OpenSSL, you can use this command to create it:&lt;/P&gt;
&lt;PRE class="brush:bash; class-name:dark;"&gt;     openssl genrsa -out private_key.pem -3 3072&lt;/PRE&gt;

&lt;P&gt;Then, to sign your enclave, you can use this command:&lt;/P&gt;

&lt;PRE class="brush:bash; class-name:dark;"&gt;    sgx_sign.exe sign -key "private_key.pem" -enclave "Enclave1.dll" -out "Enclave1.signed.dll" -config "Enclave1.config.xml"&lt;/PRE&gt;

&lt;P&gt;Once you've done that, assuming you built your app in Debug or Prerelease mode, once sgx_create_enclave comes back successful, you're running in SGX mode.&amp;nbsp; If you really wanted to verify/test, you could try to read the enclave physical memory using a utility/driver such as RWEverything (&lt;A href="http://rweverything.com/"&gt;http://rweverything.com/&lt;/A&gt;)...&amp;nbsp; this should of course fail to read the memory.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;Scott&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 15:43:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/local-attestation-not-working/m-p/1141868#M2282</guid>
      <dc:creator>Scott_R_Intel</dc:creator>
      <dc:date>2019-01-29T15:43:47Z</dc:date>
    </item>
    <item>
      <title>i mean... when  ISV  release</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/local-attestation-not-working/m-p/1141869#M2283</link>
      <description>&lt;P&gt;i mean... when &amp;nbsp;ISV&amp;nbsp; release app, EPC is encrypted with&amp;nbsp;&amp;nbsp;ISV's Private key. so user needs hash and public key to verify it is not modified. but i can't find these things on out folder. what i missed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your help sir.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 23:52:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/local-attestation-not-working/m-p/1141869#M2283</guid>
      <dc:creator>sang__oh</dc:creator>
      <dc:date>2019-01-29T23:52:00Z</dc:date>
    </item>
    <item>
      <title>Hi again.</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/local-attestation-not-working/m-p/1141870#M2284</link>
      <description>&lt;P&gt;Hi again.&lt;/P&gt;&lt;P&gt;I'm not sure what you're referring to.&amp;nbsp; The EPC is not encrypted with anything from the user.&amp;nbsp; The SGX Memory Encryption Engine&amp;nbsp; (MEE) that encrypts the EPC uses randomly generated keys that are created at every boot time.&amp;nbsp; There is no way to access these keys.&amp;nbsp; For more info on MEE, see this link:&amp;nbsp;&amp;nbsp;&lt;A href="https://software.intel.com/en-us/blogs/2016/02/26/memory-encryption-an-intel-sgx-underpinning-technology"&gt;https://software.intel.com/en-us/blogs/2016/02/26/memory-encryption-an-intel-sgx-underpinning-technology&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As I already mentioned, you can create the keys and hash using OpenSSL and the sgx_sign tool.&amp;nbsp; Some examples can be found at the links below.&amp;nbsp; But, just to clarify again, for debug/pre-release mode, you only need your private key to sign the enclave.&amp;nbsp; You would only need the public key and hash if you were going to whitelist.&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/en-us/sgx-sdk-dev-reference-enclave-signing-examples"&gt;https://software.intel.com/en-us/sgx-sdk-dev-reference-enclave-signing-examples&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/en-us/sgx-sdk-dev-reference-openssl-examples"&gt;https://software.intel.com/en-us/sgx-sdk-dev-reference-openssl-examples&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 15:31:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/local-attestation-not-working/m-p/1141870#M2284</guid>
      <dc:creator>Scott_R_Intel</dc:creator>
      <dc:date>2019-01-30T15:31:10Z</dc:date>
    </item>
  </channel>
</rss>

