<?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>Secure AuthenticationのトピックSE050: OpenSSL (SSS) integration</title>
    <link>https://community.nxp.com/t5/Secure-Authentication/SE050-OpenSSL-SSS-integration/m-p/1949067#M1685</link>
    <description>&lt;P&gt;I am trying to write TPM agnostic code that could potentially run on other platforms but with other engines.&lt;/P&gt;&lt;P&gt;Look at the following code:&lt;/P&gt;&lt;P&gt;const char *key_uri = "sss://key/ID=0x00000001";&lt;BR /&gt;const char *engine_id = "e4sss";&lt;/P&gt;&lt;P&gt;if (!OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL)) {&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;ENGINE_load_builtin_engines();&lt;/P&gt;&lt;P&gt;e = ENGINE_by_id(engine_id);&lt;BR /&gt;if (!e) {&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (!ENGINE_init(e)) {&lt;BR /&gt;return 1;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;ENGINE_set_default(e, ENGINE_METHOD_ALL);&lt;/P&gt;&lt;P&gt;// Step 5: Load the private key from the specified key URI&lt;BR /&gt;pkey = ENGINE_load_private_key(e, key_uri, NULL, NULL);&lt;BR /&gt;if (!pkey) {&lt;BR /&gt;fprintf(stderr, "Failed to load private key from URI: %s\n", key_uri);&lt;BR /&gt;ENGINE_free(e);&lt;BR /&gt;return 1;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Here the program breaks, the key can not be loaded.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;</description>
    <pubDate>Fri, 06 Sep 2024 13:10:23 GMT</pubDate>
    <dc:creator>rhuber</dc:creator>
    <dc:date>2024-09-06T13:10:23Z</dc:date>
    <item>
      <title>SE050: OpenSSL (SSS) integration</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/SE050-OpenSSL-SSS-integration/m-p/1949067#M1685</link>
      <description>&lt;P&gt;I am trying to write TPM agnostic code that could potentially run on other platforms but with other engines.&lt;/P&gt;&lt;P&gt;Look at the following code:&lt;/P&gt;&lt;P&gt;const char *key_uri = "sss://key/ID=0x00000001";&lt;BR /&gt;const char *engine_id = "e4sss";&lt;/P&gt;&lt;P&gt;if (!OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL)) {&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;ENGINE_load_builtin_engines();&lt;/P&gt;&lt;P&gt;e = ENGINE_by_id(engine_id);&lt;BR /&gt;if (!e) {&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (!ENGINE_init(e)) {&lt;BR /&gt;return 1;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;ENGINE_set_default(e, ENGINE_METHOD_ALL);&lt;/P&gt;&lt;P&gt;// Step 5: Load the private key from the specified key URI&lt;BR /&gt;pkey = ENGINE_load_private_key(e, key_uri, NULL, NULL);&lt;BR /&gt;if (!pkey) {&lt;BR /&gt;fprintf(stderr, "Failed to load private key from URI: %s\n", key_uri);&lt;BR /&gt;ENGINE_free(e);&lt;BR /&gt;return 1;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Here the program breaks, the key can not be loaded.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 13:10:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/SE050-OpenSSL-SSS-integration/m-p/1949067#M1685</guid>
      <dc:creator>rhuber</dc:creator>
      <dc:date>2024-09-06T13:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: SE050: OpenSSL (SSS) integration</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/SE050-OpenSSL-SSS-integration/m-p/1950605#M1687</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/224247"&gt;@rhuber&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We provide a demo in&amp;nbsp;simw-top\demos\linux\tls_client\src to show how load&amp;nbsp;OpenSSL engine and use&amp;nbsp;client key pair provisioned in SE, please kindly refer to this demo for details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 04:49:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/SE050-OpenSSL-SSS-integration/m-p/1950605#M1687</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2024-09-10T04:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: SE050: OpenSSL (SSS) integration</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/SE050-OpenSSL-SSS-integration/m-p/1975866#M1729</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/59276"&gt;@Kan_Li&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your answer,&lt;/P&gt;&lt;P&gt;Unfortunately this code does not answer my question how to use a key_uri,&lt;/P&gt;&lt;P&gt;this example raise however another question that I am strungeling with, maybe you could answer this as well?&lt;/P&gt;&lt;P&gt;if I have an application that communicate with the TPM over OpenSSL and the engine e4sss.&lt;/P&gt;&lt;P&gt;What happens if the same application would communicate with the TPM directly?&lt;/P&gt;&lt;P&gt;My experience so far is that e4sss will drop it's communication and a restart of the application is needed.&lt;/P&gt;&lt;P&gt;Is this by design?&lt;/P&gt;&lt;P&gt;Thank you again for your answer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Richard&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 08:31:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/SE050-OpenSSL-SSS-integration/m-p/1975866#M1729</guid>
      <dc:creator>rhuber</dc:creator>
      <dc:date>2024-10-17T08:31:59Z</dc:date>
    </item>
  </channel>
</rss>

