<?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 Hi Anna, in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184978#M3678</link>
    <description>&lt;P&gt;Hi Anna,&lt;/P&gt;&lt;P&gt;Let's try to run the post build step manually. The post build step is actually two commands executed sequentially. The first step is to open a command line prompt as Administrator.&lt;/P&gt;&lt;P&gt;Ensure these files exist before running the first command:&lt;/P&gt;
&lt;PRE class="brush:plain; class-name:dark;"&gt;C:\Program Files (x86)\Intel\IntelSGXSDK\bin\x64\Release\sgx_enc_ip.exe

C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\Enclave\key.bin

C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.dll

C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\Enclave\Enclave_private.pem&lt;/PRE&gt;

&lt;P&gt;After you verified the above files exist, run this command:&lt;/P&gt;

&lt;PRE class="brush:plain; class-name:dark;"&gt;C:\Program Files (x86)\Intel\IntelSGXSDK\bin\x64\Release\sgx_enc_ip.exe -k "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\Enclave\key.bin" -i "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.dll" -o "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.enc.dll"&lt;/PRE&gt;

&lt;P&gt;Ensure this file gets generated after the first command:&lt;/P&gt;

&lt;PRE class="brush:plain; class-name:dark;"&gt;C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.enc.dll
&lt;/PRE&gt;

&lt;P&gt;Now you can run the second command command to sign Enclave.enc.dll and generate Enclave.signed.enc.dll.&lt;/P&gt;

&lt;PRE class="brush:bash; class-name:dark;"&gt;C:\Program Files (x86)\Intel\IntelSGXSDK\bin\x64\Release\sgx_sign.exe sign -key "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\Enclave\Enclave_private.pem" -enclave "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.enc.dll" -o "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.signed.enc.dll"&lt;/PRE&gt;

&lt;P&gt;This file is the final one you end up with:&lt;/P&gt;

&lt;PRE class="brush:plain; class-name:dark;"&gt;C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.signed.enc.dll&lt;/PRE&gt;</description>
    <pubDate>Fri, 22 May 2020 21:24:58 GMT</pubDate>
    <dc:creator>JesusG_Intel</dc:creator>
    <dc:date>2020-05-22T21:24:58Z</dc:date>
    <item>
      <title>SampleEnclavePCL building error</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184968#M3668</link>
      <description>&lt;P&gt;Hi! I get the following building error when trying to build the SDK sample solution SampleEnclavePCL:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Error&amp;nbsp;&amp;nbsp; &amp;nbsp;MSB3073&amp;nbsp;&amp;nbsp; &amp;nbsp;The command ""C:\Program Files (x86)\Intel\IntelSGXSDK\bin\win32\release\sgx_enc_ip.exe" -k key.bin -i "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\Debug\Enclave.dll" -o "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\Debug\Enclave.enc.dll" &amp;amp;&amp;amp; "C:\Program Files (x86)\Intel\IntelSGXSDK\bin\win32\release\sgx_sign.exe" sign -key "Enclave_private.pem" -enclave "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\Debug\Enclave.enc.dll" -out "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\Debug\Enclave.signed.dll" -config "Enclave.config.xml"&lt;BR /&gt;:VCEnd" exited with code -1073741515.&amp;nbsp;&amp;nbsp; &amp;nbsp;Enclave&amp;nbsp;&amp;nbsp; &amp;nbsp;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets&amp;nbsp;&amp;nbsp; &amp;nbsp;138&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and in the output of the program: Failed to read sealed_key.bin. Error: Can't open enclave file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Details:&lt;/P&gt;&lt;P&gt;Target Platform: Windows 10 version 10.0.18363 Build 18363&lt;/P&gt;&lt;P&gt;Windows SDK version: 10.01.6299.0&lt;/P&gt;&lt;P&gt;Platform Toolset ; Visual Studio 2017(v141)&lt;/P&gt;&lt;P&gt;&amp;nbsp;SGX SDK version: 2.7.101.2&lt;/P&gt;&lt;P&gt;SGX PSW version: 2.7.101.2&lt;/P&gt;&lt;P&gt;SGX Device version: 2.7.100.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not know where the problem is. If anybody could help me solve it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 15:51:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184968#M3668</guid>
      <dc:creator>Criston__Anna</dc:creator>
      <dc:date>2020-05-21T15:51:08Z</dc:date>
    </item>
    <item>
      <title>Hi Anna, I got the same error</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184969#M3669</link>
      <description>&lt;P&gt;Hi Anna, I got the same error. I'm looking into it.&lt;/P&gt;&lt;P&gt;Jesus&lt;/P&gt;&lt;P&gt;Intel Customer Support&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 23:37:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184969#M3669</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2020-05-21T23:37:40Z</dc:date>
    </item>
    <item>
      <title>Hi Anna,</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184970#M3670</link>
      <description>&lt;P&gt;Hi Anna,&lt;/P&gt;&lt;P&gt;In Visual Studio&lt;/P&gt;&lt;P&gt;1. Right click the project Enclave-&amp;gt;Properties-&amp;gt;Build Events-&amp;gt;Post-Build Event-&amp;gt;Change Command line to read as below. I bolded the only change. This step encrypts the enclave.dll then needs to sign the encrypted version, which is called enclave.enc.dll.&lt;/P&gt;&lt;P style="margin-left:0in; margin-right:0in"&gt;"$(SGXSDKInstallPath)bin\x64\release\sgx_enc_ip.exe" -k key.bin -i "$(OutDir)Enclave.dll" -o "$(OutDir)Enclave.enc.dll" &amp;amp;&amp;amp; "$(SGXSDKInstallPath)bin\x64\release\sgx_sign.exe" sign -key "Enclave_private.pem" -enclave "$(OutDir)Enclave&lt;STRONG&gt;.enc&lt;/STRONG&gt;.dll" -out "$(OutDir)Enclave.signed.enc.dll" -config "Enclave.config.xml"&lt;/P&gt;&lt;P style="margin-left:0in; margin-right:0in"&gt;I found this in the document Intel Software Guard Extensions Developer Reference for Windows OS, page 101. There is a list there called, "Modifications to IP Enclave"&amp;nbsp;for modifications needed to compile this enclave.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jesus&lt;/P&gt;&lt;P&gt;Intel Customer Support&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 23:59:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184970#M3670</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2020-05-21T23:59:00Z</dc:date>
    </item>
    <item>
      <title>Quote:Garcia, Jesus L (Intel)</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184971#M3671</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Garcia, Jesus L (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Anna,&lt;/P&gt;&lt;P&gt;In Visual Studio&lt;/P&gt;&lt;P&gt;1. Right click the project Enclave-&amp;gt;Properties-&amp;gt;Build Events-&amp;gt;Post-Build Event-&amp;gt;Change Command line to read as below. I bolded the only change. This step encrypts the enclave.dll then needs to sign the encrypted version, which is called enclave.enc.dll.&lt;/P&gt;&lt;P&gt;"$(SGXSDKInstallPath)bin\x64\release\sgx_enc_ip.exe" -k key.bin -i "$(OutDir)Enclave.dll" -o "$(OutDir)Enclave.enc.dll" &amp;amp;&amp;amp; "$(SGXSDKInstallPath)bin\x64\release\sgx_sign.exe" sign -key "Enclave_private.pem" -enclave "$(OutDir)Enclave&lt;STRONG&gt;.enc&lt;/STRONG&gt;.dll" -out "$(OutDir)Enclave.signed.enc.dll" -config "Enclave.config.xml"&lt;/P&gt;&lt;P&gt;I found this in the document Intel Software Guard Extensions Developer Reference for Windows OS, page 101. There is a list there called, "Modifications to IP Enclave"&amp;nbsp;for modifications needed to compile this enclave.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jesus&lt;/P&gt;&lt;P&gt;Intel Customer Support&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply. I made the modification, however the problem still remains. I had a look in the Developer Reference, cannot really figure out what else I could change.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 06:48:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184971#M3671</guid>
      <dc:creator>Criston__Anna</dc:creator>
      <dc:date>2020-05-22T06:48:21Z</dc:date>
    </item>
    <item>
      <title>Hi Anna, please post the full</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184972#M3672</link>
      <description>&lt;P&gt;Hi Anna, please post the full command line in your post-build event here.&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 15:49:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184972#M3672</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2020-05-22T15:49:04Z</dc:date>
    </item>
    <item>
      <title>Quote:Garcia, Jesus L (Intel)</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184973#M3673</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Garcia, Jesus L (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Anna, please post the full command line in your post-build event here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure.&lt;/P&gt;&lt;P&gt;"$(SGXSDKInstallPath)bin\x64\release\sgx_enc_ip.exe" -k key.bin -i "$(OutDir)Enclave.dll" -o "$(OutDir)Enclave.enc.dll" &amp;amp;&amp;amp; "$(SGXSDKInstallPath)bin\x64\release\sgx_sign.exe" sign -key "Enclave_private.pem" -enclave "$(OutDir)Enclave.enc.dll" -out "$(OutDir)Enclave.signed.enc.dll" -config "Enclave.config.xml"&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 16:26:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184973#M3673</guid>
      <dc:creator>Criston__Anna</dc:creator>
      <dc:date>2020-05-22T16:26:41Z</dc:date>
    </item>
    <item>
      <title>Hi Anna, your command is</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184974#M3674</link>
      <description>&lt;P&gt;Hi Anna, your command is correct. I was able to reproduce your error when I compiled as Win32. Change your compile target platform to x64 and it should work. I don't know why Win32 does not work.&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 17:13:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184974#M3674</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2020-05-22T17:13:16Z</dc:date>
    </item>
    <item>
      <title>Quote:Garcia, Jesus L (Intel)</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184975#M3675</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Garcia, Jesus L (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Anna, your command is correct. I was able to reproduce your error when I compiled as Win32. Change your compile target platform to x64 and it should work. I don't know why Win32 does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply, Jesus. I did change my target platform, however I still have the problem:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot (1).png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/10731iFC8F8032B60675CC/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Screenshot (1).png" alt="Screenshot (1).png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot (2).png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/10732i5A1A7AE192BC1BF9/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Screenshot (2).png" alt="Screenshot (2).png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot (3).png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/10733i1EC1A93999AB6CB7/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Screenshot (3).png" alt="Screenshot (3).png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 18:20:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184975#M3675</guid>
      <dc:creator>Criston__Anna</dc:creator>
      <dc:date>2020-05-22T18:20:00Z</dc:date>
    </item>
    <item>
      <title>Hello Anna, we're going to</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184976#M3676</link>
      <description>&lt;P&gt;Hello Anna, we're going to have to dive deeper. I have the same config as you based on your screenshots and the post-build step works without a problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's try a fresh installation of the SDK. Save your work to another folder, then uninstall the SGX SDK.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Go to "Control Panel\Programs\Programs and Features".&lt;/LI&gt;&lt;LI&gt;Right click and uninstall&amp;nbsp;Intel Software Guard Extensions SDK for Windows*&lt;/LI&gt;&lt;LI&gt;Be sure to remove this directory if not completely removed after the uninstall:&amp;nbsp;C:\Program Files (x86)\Intel\IntelSGXSDK&lt;/LI&gt;&lt;LI&gt;Reinstall the SGX SDK.&lt;/LI&gt;&lt;LI&gt;Open the SampleEnclavePCL sample with VS as administrator.&lt;/LI&gt;&lt;LI&gt;Go to the Enclave project properties and change the post-build event as you did before and try to compile for x64.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 19:18:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184976#M3676</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2020-05-22T19:18:00Z</dc:date>
    </item>
    <item>
      <title>Quote:Garcia, Jesus L (Intel)</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184977#M3677</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Garcia, Jesus L (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello Anna, we're going to have to dive deeper. I have the same config as you based on your screenshots and the post-build step works without a problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's try a fresh installation of the SDK. Save your work to another folder, then uninstall the SGX SDK.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Go to "Control Panel\Programs\Programs and Features".&lt;/LI&gt;&lt;LI&gt;Right click and uninstall&amp;nbsp;Intel Software Guard Extensions SDK for Windows*&lt;/LI&gt;&lt;LI&gt;Be sure to remove this directory if not completely removed after the uninstall:&amp;nbsp;C:\Program Files (x86)\Intel\IntelSGXSDK&lt;/LI&gt;&lt;LI&gt;Reinstall the SGX SDK.&lt;/LI&gt;&lt;LI&gt;Open the SampleEnclavePCL sample with VS as administrator.&lt;/LI&gt;&lt;LI&gt;Go to the Enclave project properties and change the post-build event as you did before and try to compile for x64.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply, Jesus. I did as you said, but no success. One thing I noticed is that the release folder was installed with capital R, I changed that, but still not working. I attach screenshots of the two folders accessed. It seems as Enclave.enc.dll does not make it to the Debug folder.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot (5).png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/10734i94E3E32EBB05178A/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Screenshot (5).png" alt="Screenshot (5).png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot (6).png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/10735iF56479F47AD260A2/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Screenshot (6).png" alt="Screenshot (6).png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 20:41:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184977#M3677</guid>
      <dc:creator>Criston__Anna</dc:creator>
      <dc:date>2020-05-22T20:41:16Z</dc:date>
    </item>
    <item>
      <title>Hi Anna,</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184978#M3678</link>
      <description>&lt;P&gt;Hi Anna,&lt;/P&gt;&lt;P&gt;Let's try to run the post build step manually. The post build step is actually two commands executed sequentially. The first step is to open a command line prompt as Administrator.&lt;/P&gt;&lt;P&gt;Ensure these files exist before running the first command:&lt;/P&gt;
&lt;PRE class="brush:plain; class-name:dark;"&gt;C:\Program Files (x86)\Intel\IntelSGXSDK\bin\x64\Release\sgx_enc_ip.exe

C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\Enclave\key.bin

C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.dll

C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\Enclave\Enclave_private.pem&lt;/PRE&gt;

&lt;P&gt;After you verified the above files exist, run this command:&lt;/P&gt;

&lt;PRE class="brush:plain; class-name:dark;"&gt;C:\Program Files (x86)\Intel\IntelSGXSDK\bin\x64\Release\sgx_enc_ip.exe -k "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\Enclave\key.bin" -i "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.dll" -o "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.enc.dll"&lt;/PRE&gt;

&lt;P&gt;Ensure this file gets generated after the first command:&lt;/P&gt;

&lt;PRE class="brush:plain; class-name:dark;"&gt;C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.enc.dll
&lt;/PRE&gt;

&lt;P&gt;Now you can run the second command command to sign Enclave.enc.dll and generate Enclave.signed.enc.dll.&lt;/P&gt;

&lt;PRE class="brush:bash; class-name:dark;"&gt;C:\Program Files (x86)\Intel\IntelSGXSDK\bin\x64\Release\sgx_sign.exe sign -key "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\Enclave\Enclave_private.pem" -enclave "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.enc.dll" -o "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.signed.enc.dll"&lt;/PRE&gt;

&lt;P&gt;This file is the final one you end up with:&lt;/P&gt;

&lt;PRE class="brush:plain; class-name:dark;"&gt;C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.signed.enc.dll&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 May 2020 21:24:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184978#M3678</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2020-05-22T21:24:58Z</dc:date>
    </item>
    <item>
      <title>Quote:Garcia, Jesus L (Intel)</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184979#M3679</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Garcia, Jesus L (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Anna,&lt;/P&gt;&lt;P&gt;Let's try to run the post build step manually. The post build step is actually two commands executed sequentially. The first step is to open a command line prompt as Administrator.&lt;/P&gt;&lt;P&gt;Ensure these files exist before running the first command:&lt;/P&gt;
&lt;PRE class="brush:plain; class-name:dark;"&gt;C:\Program Files (x86)\Intel\IntelSGXSDK\bin\x64\Release\sgx_enc_ip.exe

C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\Enclave\key.bin

C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.dll

C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\Enclave\Enclave_private.pem&lt;/PRE&gt;

&lt;P&gt;After you verified the above files exist, run this command:&lt;/P&gt;

&lt;PRE class="brush:plain; class-name:dark;"&gt;C:\Program Files (x86)\Intel\IntelSGXSDK\bin\x64\Release\sgx_enc_ip.exe -k "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\Enclave\key.bin" -i "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.dll" -o "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.enc.dll"&lt;/PRE&gt;

&lt;P&gt;Ensure this file gets generated after the first command:&lt;/P&gt;

&lt;PRE class="brush:plain; class-name:dark;"&gt;C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.enc.dll
&lt;/PRE&gt;

&lt;P&gt;Now you can run the second command command to sign Enclave.enc.dll and generate Enclave.signed.enc.dll.&lt;/P&gt;

&lt;PRE class="brush:bash; class-name:dark;"&gt;C:\Program Files (x86)\Intel\IntelSGXSDK\bin\x64\Release\sgx_sign.exe sign -key "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\Enclave\Enclave_private.pem" -enclave "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.enc.dll" -o "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.signed.enc.dll"&lt;/PRE&gt;

&lt;P&gt;This file is the final one you end up with:&lt;/P&gt;

&lt;PRE class="brush:plain; class-name:dark;"&gt;C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.signed.enc.dll&lt;/PRE&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Alright. When I run the first command I get the following error:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot (7).png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/10736i0479B572CEFDED92/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Screenshot (7).png" alt="Screenshot (7).png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 07:32:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184979#M3679</guid>
      <dc:creator>Criston__Anna</dc:creator>
      <dc:date>2020-05-23T07:32:10Z</dc:date>
    </item>
    <item>
      <title>Quote:Criston, Anna wrote:</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184980#M3680</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Criston, Anna wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Quote:&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;EM&gt;Garcia, Jesus L (Intel)&lt;/EM&gt; wrote:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Anna,&lt;/P&gt;&lt;P&gt;Let's try to run the post build step manually. The post build step is actually two commands executed sequentially. The first step is to open a command line prompt as Administrator.&lt;/P&gt;&lt;P&gt;Ensure these files exist before running the first command:&lt;/P&gt;
&lt;PRE class="brush:plain; class-name:dark;"&gt;C:\Program Files (x86)\Intel\IntelSGXSDK\bin\x64\Release\sgx_enc_ip.exe

C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\Enclave\key.bin

C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.dll

C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\Enclave\Enclave_private.pem&lt;/PRE&gt;

&lt;P&gt;After you verified the above files exist, run this command:&lt;/P&gt;

&lt;PRE class="brush:plain; class-name:dark;"&gt;C:\Program Files (x86)\Intel\IntelSGXSDK\bin\x64\Release\sgx_enc_ip.exe -k "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\Enclave\key.bin" -i "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.dll" -o "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.enc.dll"&lt;/PRE&gt;

&lt;P&gt;Ensure this file gets generated after the first command:&lt;/P&gt;

&lt;PRE class="brush:plain; class-name:dark;"&gt;C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.enc.dll
&lt;/PRE&gt;

&lt;P&gt;Now you can run the second command command to sign Enclave.enc.dll and generate Enclave.signed.enc.dll.&lt;/P&gt;

&lt;PRE class="brush:bash; class-name:dark;"&gt;C:\Program Files (x86)\Intel\IntelSGXSDK\bin\x64\Release\sgx_sign.exe sign -key "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\Enclave\Enclave_private.pem" -enclave "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.enc.dll" -o "C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.signed.enc.dll"&lt;/PRE&gt;

&lt;P&gt;This file is the final one you end up with:&lt;/P&gt;

&lt;PRE class="brush:plain; class-name:dark;"&gt;C:\Program Files (x86)\Intel\IntelSGXSDK\src\SampleEnclavePCL\x64\Debug\Enclave.signed.enc.dll&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alright. When I run the first command I get the following error:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot (7).png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/10736i0479B572CEFDED92/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Screenshot (7).png" alt="Screenshot (7).png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Update: Downloaded libcrypto-1_1-x64.dll version 1.1.1.4, placed it in&amp;nbsp;C:\Program Files (x86)\Intel\IntelSGXSDK\bin\x64\Release, and the enclave is building just fine. However, running the program gives me the following the error:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot (11).png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/10738i0B5311022AD7957F/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Screenshot (11).png" alt="Screenshot (11).png" /&gt;&lt;/span&gt;And the line and status where it prints "Failed to read sealed_key.bin":&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot (9).png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/10737i02058F13CCF12760/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Screenshot (9).png" alt="Screenshot (9).png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 07:48:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184980#M3680</guid>
      <dc:creator>Criston__Anna</dc:creator>
      <dc:date>2020-05-23T07:48:00Z</dc:date>
    </item>
    <item>
      <title>Hi Anna,</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184981#M3681</link>
      <description>&lt;P&gt;Hi Anna,&lt;/P&gt;&lt;P&gt;You found a bug!&amp;nbsp; Here is the fix. Add this line before ReadFile.&lt;/P&gt;&lt;P style="margin-left:0in; margin-right:0in"&gt;sealed_key_blob = new uint8_t[sealed_key_blob_file_size];&lt;/P&gt;&lt;P style="margin-left:0in; margin-right:0in"&gt;Your code should look like this:&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark;"&gt;else
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;sealed_key_blob = new uint8_t[sealed_key_blob_file_size];
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ReadFile(sealed_key_handler, sealed_key_blob, sealed_key_blob_file_size, &amp;amp;read_num, NULL);
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (read_num != sealed_key_blob_file_size) {
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;printf("Failed to read %s\n", sealed_key_blob_path);
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ErrorExit(TEXT("ReadFile"));
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 18:48:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184981#M3681</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2020-05-26T18:48:32Z</dc:date>
    </item>
    <item>
      <title>Quote:Garcia, Jesus L (Intel)</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184982#M3682</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Garcia, Jesus L (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Anna,&lt;/P&gt;&lt;P&gt;You found a bug!&amp;nbsp; Here is the fix. Add this line before ReadFile.&lt;/P&gt;&lt;P&gt;sealed_key_blob = new uint8_t[sealed_key_blob_file_size];&lt;/P&gt;&lt;P&gt;Your code should look like this:&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark;"&gt;else
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;sealed_key_blob = new uint8_t[sealed_key_blob_file_size];
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ReadFile(sealed_key_handler, sealed_key_blob, sealed_key_blob_file_size, &amp;amp;read_num, NULL);
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (read_num != sealed_key_blob_file_size) {
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;printf("Failed to read %s\n", sealed_key_blob_path);
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ErrorExit(TEXT("ReadFile"));
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;this solved it. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 19:01:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SampleEnclavePCL-building-error/m-p/1184982#M3682</guid>
      <dc:creator>Criston__Anna</dc:creator>
      <dc:date>2020-06-03T19:01:15Z</dc:date>
    </item>
  </channel>
</rss>

