<?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 Signing Enclave with RSA Keys in two step process in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Signing-Enclave-with-RSA-Keys-in-two-step-process/m-p/1146461#M2435</link>
    <description>&lt;P&gt;Dear All,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I want to break down the build process of the SGX and therefore I am trying to sign the Enclave myself using the two step process. Once the Enclave is compiled as an enclave.so, I perform the following steps manually to get the signed Enclave:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Generating Keypair:&lt;BR /&gt;
	-------------------&lt;BR /&gt;
	openssl genrsa -out my_private_key.pem -3 3072&lt;BR /&gt;
	openssl rsa -in my_private_key.pem -pubout -out my_public_key.pem&lt;/P&gt;

&lt;P&gt;Siging the Enclave:&lt;BR /&gt;
	-----------------------------&lt;/P&gt;

&lt;P&gt;2-Step Process:&lt;BR /&gt;
	----------------&lt;BR /&gt;
	sgx_sign gendata -enclave enclave.so -config Enclave/Enclave.config.xml -out enclave_hash.hex&lt;/P&gt;

&lt;P&gt;openssl dgst -sha256&amp;nbsp;&amp;nbsp;-out signature.hex&amp;nbsp; -sign my_private_key.pem -keyform PEM&amp;nbsp; enclave_hash.hex&amp;nbsp;&lt;/P&gt;

&lt;P&gt;sgx_sign catsig -enclave enclave.so -config Enclave/Enclave.config.xml -out enclave_signed.so -key my_public_key.pem -sig signature.hex -unsigned enclave_hash.hex&lt;/P&gt;

&lt;P&gt;All except the last step throws up the following error:&lt;/P&gt;

&lt;P&gt;"Error happened while signing the Enclave."&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Can someone point out the problem?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Mar 2018 09:53:17 GMT</pubDate>
    <dc:creator>bergmann__Tina</dc:creator>
    <dc:date>2018-03-01T09:53:17Z</dc:date>
    <item>
      <title>Signing Enclave with RSA Keys in two step process</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Signing-Enclave-with-RSA-Keys-in-two-step-process/m-p/1146461#M2435</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I want to break down the build process of the SGX and therefore I am trying to sign the Enclave myself using the two step process. Once the Enclave is compiled as an enclave.so, I perform the following steps manually to get the signed Enclave:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Generating Keypair:&lt;BR /&gt;
	-------------------&lt;BR /&gt;
	openssl genrsa -out my_private_key.pem -3 3072&lt;BR /&gt;
	openssl rsa -in my_private_key.pem -pubout -out my_public_key.pem&lt;/P&gt;

&lt;P&gt;Siging the Enclave:&lt;BR /&gt;
	-----------------------------&lt;/P&gt;

&lt;P&gt;2-Step Process:&lt;BR /&gt;
	----------------&lt;BR /&gt;
	sgx_sign gendata -enclave enclave.so -config Enclave/Enclave.config.xml -out enclave_hash.hex&lt;/P&gt;

&lt;P&gt;openssl dgst -sha256&amp;nbsp;&amp;nbsp;-out signature.hex&amp;nbsp; -sign my_private_key.pem -keyform PEM&amp;nbsp; enclave_hash.hex&amp;nbsp;&lt;/P&gt;

&lt;P&gt;sgx_sign catsig -enclave enclave.so -config Enclave/Enclave.config.xml -out enclave_signed.so -key my_public_key.pem -sig signature.hex -unsigned enclave_hash.hex&lt;/P&gt;

&lt;P&gt;All except the last step throws up the following error:&lt;/P&gt;

&lt;P&gt;"Error happened while signing the Enclave."&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Can someone point out the problem?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 09:53:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Signing-Enclave-with-RSA-Keys-in-two-step-process/m-p/1146461#M2435</guid>
      <dc:creator>bergmann__Tina</dc:creator>
      <dc:date>2018-03-01T09:53:17Z</dc:date>
    </item>
    <item>
      <title>It looks like that when you</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Signing-Enclave-with-RSA-Keys-in-two-step-process/m-p/1146462#M2436</link>
      <description>&lt;P&gt;It looks like that when you generate the key, you did not specify the encryption algorithm.&lt;/P&gt;

&lt;P&gt;It should be&amp;nbsp; &amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;$ openssl genrsa -aes128 -out my_private_key.pem -3 3072&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;instead of just&amp;nbsp;$ openssl genrsa&amp;nbsp; -out my_private_key.pem -3 3072&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 00:03:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Signing-Enclave-with-RSA-Keys-in-two-step-process/m-p/1146462#M2436</guid>
      <dc:creator>Hoang_N_Intel</dc:creator>
      <dc:date>2018-03-16T00:03:52Z</dc:date>
    </item>
    <item>
      <title>Is it possible to sign</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Signing-Enclave-with-RSA-Keys-in-two-step-process/m-p/1146463#M2437</link>
      <description>&lt;P&gt;Is it possible to sign enclave with and RSA key with an exponent other than 3?&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2018 18:04:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Signing-Enclave-with-RSA-Keys-in-two-step-process/m-p/1146463#M2437</guid>
      <dc:creator>Yan_M_1</dc:creator>
      <dc:date>2018-05-14T18:04:45Z</dc:date>
    </item>
    <item>
      <title>No, please do not use an</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Signing-Enclave-with-RSA-Keys-in-two-step-process/m-p/1146464#M2438</link>
      <description>&lt;P&gt;No, please do not use an exponent value other than 3. It must be 3 as the SGX AESM uses that value along with the public key to validate and load the Enclave.&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 16:05:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Signing-Enclave-with-RSA-Keys-in-two-step-process/m-p/1146464#M2438</guid>
      <dc:creator>Hoang_N_Intel</dc:creator>
      <dc:date>2018-05-17T16:05:18Z</dc:date>
    </item>
  </channel>
</rss>

