<?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: PKCS11 communication to SE050 via OpenSSL in Secure Authentication</title>
    <link>https://community.nxp.com/t5/Secure-Authentication/PKCS11-communication-to-SE050-via-OpenSSL/m-p/2358329#M2068</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/260575"&gt;@Ryopo0802&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We checked pkcs#11 provider +nxp pkcs11 plugin is not working , we could replicate the error customer is getting. So it not works for now.&amp;nbsp; Moreover, here:&amp;nbsp;&lt;A href="https://github.com/openssl-projects/pkcs11-provider/blob/main/HOWTO.md" rel="nofollow noopener noreferrer" target="_blank"&gt;pkcs11-provider/HOWTO.md at main · openssl-projects/pkcs11-provider · GitHub&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;for key generation they have given recommendation to use&amp;nbsp;&lt;SPAN&gt;tools working with pkcs11 directly such as p11tool for key generation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;However, nxp's openssl provider can be used without pkcs 11:&amp;nbsp;&lt;A href="https://github.com/NXPPlugNTrust/se05x-openssl-provider" rel="nofollow noopener noreferrer" target="_blank"&gt;GitHub - NXPPlugNTrust/se05x-openssl-provider: This is the OpenSSL Provider for Se05x. · GitHub&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't want to use NXP's Openssl provider, I would be also interested to understand why is that.&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>Wed, 29 Apr 2026 07:41:39 GMT</pubDate>
    <dc:creator>Kan_Li</dc:creator>
    <dc:date>2026-04-29T07:41:39Z</dc:date>
    <item>
      <title>PKCS11 communication to SE050 via OpenSSL</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/PKCS11-communication-to-SE050-via-OpenSSL/m-p/2353683#M2063</link>
      <description>&lt;H3&gt;Introduction&lt;/H3&gt;&lt;P&gt;We want to access a private key stored on se050 from the mod_ssl (openssl-based) of the Apache web server and perform TLS communication.&lt;/P&gt;&lt;P&gt;&lt;A href="https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#page-header" target="_blank" rel="noopener"&gt;&lt;FONT&gt;&lt;FONT&gt;https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#page-header&lt;/FONT&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;# To use a private key from a PKCS#11 token:
&lt;SPAN class=""&gt;&lt;FONT&gt;&lt;FONT&gt;SSLCertificateKeyFile &lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;FONT&gt;&lt;FONT&gt;"pkcs11:token=My%20Token%20Name;id=45"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;H3&gt;Hardware&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT&gt;&lt;FONT&gt;SE050&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;Software&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT&gt;&lt;FONT&gt;PlugAndTrust: v04.05.01&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT&gt;&lt;FONT&gt;openssl: 3.0.12&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;Tried it&lt;/H3&gt;&lt;P&gt;To verify communication with SE050 using pkcs#11, we first attempted to create a key.&lt;/P&gt;&lt;PRE&gt;&lt;FONT&gt;&lt;FONT&gt;# openssl genpkey \ &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;&amp;gt; -provider pkcs11prov \ &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;&amp;gt; -algorithm EC \ &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;&amp;gt; -pkeyopt ec_paramgen_curve:P-256 \ &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;&amp;gt; -pkeyopt pkcs11_id:01 \ &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;&amp;gt; -pkeyopt pkcs11_label:MyNewKey &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;genpkey: Error setting pkcs11_id:01 parameter:&lt;BR /&gt;20001EBB7F000000:error:03000093:digital envelope routines:default_fixup_args:command not supported:crypto/evp/ctrl_params_translate.c:580:[action:2, state:4] name=pkcs11_id, value=01&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;&lt;FONT&gt;&lt;FONT&gt;openssl.cnf&lt;/FONT&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;FONT&gt;&lt;FONT&gt; :&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT&gt;&lt;FONT&gt;openssl_conf = openssl_init &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;[openssl_init] &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;providers = provider_sect &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;[provider_sect] &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;default = default_sect &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;pkcs11 = pkcs11_sect &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;[default_sect] &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;activate = 1 &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;[pkcs11_sect] &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;identity = pkcs11prov &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;module = /usr/lib/ossl-modules/pkcs11prov.so &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;pkcs11_module = /usr/lib/libsss_pkcs11.so &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;activate = 1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;Using the "-out" option successfully generated the key, but it was generated as a file.&lt;/P&gt;&lt;PRE&gt;&lt;FONT&gt;&lt;FONT&gt;# openssl genpkey -provider pkcs11prov -provider default \ &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;&amp;gt; -algorithm EC \ &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;&amp;gt; -pkeyopt ec_paramgen_curve:P-256 \ &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;FONT&gt;&amp;gt; -out "pkcs11:id=%01;object=MyNewKey"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;H3&gt;Questions&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;FONT&gt;&lt;FONT&gt;Is it possible to communicate with SE050 using PKCS#11 with openssl3.x (provider-based)? The following is engine-based.&lt;BR /&gt;&lt;A href="https://docs.nxp.com/bundle/LLDPUG_L6.1.36_2.1.0/page/topics/pkcs_11_based_openssl_engine_third-party_opensc_li.html" target="_blank" rel="noopener"&gt;https://docs.nxp.com/bundle/LLDPUG_L6.1.36_2.1.0/page/topics/pkcs_11_based_openssl_engine_third-party_opensc_li.html&lt;/A&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;Are the &lt;EM&gt;openssl.cnf&lt;/EM&gt; file and the libraries being used incorrect?&lt;/LI&gt;&lt;LI&gt;Is the command you used to generate the key incorrect?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;BR /&gt;I look forward to your response.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2026 11:41:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/PKCS11-communication-to-SE050-via-OpenSSL/m-p/2353683#M2063</guid>
      <dc:creator>Ryopo0802</dc:creator>
      <dc:date>2026-04-20T11:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: PKCS11 communication to SE050 via OpenSSL</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/PKCS11-communication-to-SE050-via-OpenSSL/m-p/2355532#M2064</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/260575"&gt;@Ryopo0802&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which SE05x variant are you testing with? Was it SE050E2? Please kindly clarify.&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>Fri, 24 Apr 2026 02:31:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/PKCS11-communication-to-SE050-via-OpenSSL/m-p/2355532#M2064</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2026-04-24T02:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: PKCS11 communication to SE050 via OpenSSL</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/PKCS11-communication-to-SE050-via-OpenSSL/m-p/2355548#M2065</link>
      <description>&lt;P&gt;Thank you, &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/59276"&gt;@Kan_Li&lt;/a&gt; .&lt;/P&gt;&lt;P&gt;I am using the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Type number: &lt;STRONG&gt;SE050F2HQ1/Z018H&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;SE050 Variant: &lt;STRONG&gt;SE050F2&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 24 Apr 2026 03:02:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/PKCS11-communication-to-SE050-via-OpenSSL/m-p/2355548#M2065</guid>
      <dc:creator>Ryopo0802</dc:creator>
      <dc:date>2026-04-24T03:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: PKCS11 communication to SE050 via OpenSSL</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/PKCS11-communication-to-SE050-via-OpenSSL/m-p/2356780#M2067</link>
      <description>&lt;P&gt;&lt;A href="https://community.nxp.com/t5/Secure-Authentication/pkcs11-tool-generates-2-private-keys-for-keypairgen/m-p/1855553" target="_blank"&gt;pkcs11-tool generates 2 private keys for keypairgen&lt;/A&gt;&amp;nbsp;Which platform you are using for SE050&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2026 01:25:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/PKCS11-communication-to-SE050-via-OpenSSL/m-p/2356780#M2067</guid>
      <dc:creator>db16122</dc:creator>
      <dc:date>2026-04-28T01:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: PKCS11 communication to SE050 via OpenSSL</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/PKCS11-communication-to-SE050-via-OpenSSL/m-p/2358329#M2068</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/260575"&gt;@Ryopo0802&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We checked pkcs#11 provider +nxp pkcs11 plugin is not working , we could replicate the error customer is getting. So it not works for now.&amp;nbsp; Moreover, here:&amp;nbsp;&lt;A href="https://github.com/openssl-projects/pkcs11-provider/blob/main/HOWTO.md" rel="nofollow noopener noreferrer" target="_blank"&gt;pkcs11-provider/HOWTO.md at main · openssl-projects/pkcs11-provider · GitHub&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;for key generation they have given recommendation to use&amp;nbsp;&lt;SPAN&gt;tools working with pkcs11 directly such as p11tool for key generation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;However, nxp's openssl provider can be used without pkcs 11:&amp;nbsp;&lt;A href="https://github.com/NXPPlugNTrust/se05x-openssl-provider" rel="nofollow noopener noreferrer" target="_blank"&gt;GitHub - NXPPlugNTrust/se05x-openssl-provider: This is the OpenSSL Provider for Se05x. · GitHub&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't want to use NXP's Openssl provider, I would be also interested to understand why is that.&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>Wed, 29 Apr 2026 07:41:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/PKCS11-communication-to-SE050-via-OpenSSL/m-p/2358329#M2068</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2026-04-29T07:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: PKCS11 communication to SE050 via OpenSSL</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/PKCS11-communication-to-SE050-via-OpenSSL/m-p/2363769#M2073</link>
      <description>&lt;P&gt;Thank you,&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;&amp;gt;&amp;nbsp;&lt;SPAN&gt;If you don't want to use NXP's Openssl provider, I would be also interested to understand why is that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I want to use HTTPS communication from an Apache server with a private key in an NXP Secure Element. Apache can only access the private key via PKCS#11 using openssl-based &lt;EM&gt;mod_ssl&lt;/EM&gt;. Therefore, openssl + PKCS#11 is required. Is there a solution?&lt;BR /&gt;&lt;A href="https://httpd.apache.org/docs/2.4/mod/mod_ssl.html" target="_blank"&gt;https://httpd.apache.org/docs/2.4/mod/mod_ssl.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2026 06:43:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/PKCS11-communication-to-SE050-via-OpenSSL/m-p/2363769#M2073</guid>
      <dc:creator>Ryopo0802</dc:creator>
      <dc:date>2026-05-12T06:43:12Z</dc:date>
    </item>
  </channel>
</rss>

