<?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のトピックRe: EdgeLock SE051: se05x_Minimal fails with SCP03 errors after loading OpenSSL Provider</title>
    <link>https://community.nxp.com/t5/Secure-Authentication/EdgeLock-SE051-se05x-Minimal-fails-with-SCP03-errors-after/m-p/2385344#M2103</link>
    <description>&lt;P&gt;Thank you very much for your advice. You were exactly right.&lt;/P&gt;&lt;P&gt;The root cause of the issue was indeed the missing "-DPTMW_OpenSSL=3_0" option in my CMake configuration.&lt;/P&gt;&lt;P&gt;After adding&amp;nbsp;"-DPTMW_OpenSSL=3_0 &lt;SPAN&gt;-DPTMW_Log=Verbose&lt;/SPAN&gt;" and rebuilding the MW, the problem was completely resolved. Here are the results:&lt;/P&gt;&lt;P&gt;Executing Step 6 no longer throws any errors. It successfully outputs "App :INFO :mem=17196" as expected.&lt;/P&gt;&lt;P&gt;I also confirmed that even when setting the log level back to my originally intended configuration ("-DPTMW_Log=Default"&amp;nbsp; instead of Verbose), the application still executes perfectly and outputs "App :INFO :mem=17196".&lt;/P&gt;&lt;P&gt;I will mark this topic as resolved.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jun 2026 00:37:55 GMT</pubDate>
    <dc:creator>Uc_S</dc:creator>
    <dc:date>2026-06-24T00:37:55Z</dc:date>
    <item>
      <title>EdgeLock SE051: se05x_Minimal fails with SCP03 errors after loading OpenSSL Provider</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/EdgeLock-SE051-se05x-Minimal-fails-with-SCP03-errors-after/m-p/2383849#M2098</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to use the OpenSSL Provider with the EdgeLock SE051 and SCP03 on Linux. I have run into an issue where the se05x_Minimal example works perfectly at first, but fails with SCP03 authentication errors &lt;I&gt;after&lt;/I&gt; I install the shared libraries for the OpenSSL Provider.&lt;/P&gt;&lt;P&gt;Could you please advise on what might be causing this conflict?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Board:&lt;/STRONG&gt; MCIMX8M-WEVK and OM-SE051ARD&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;SoC:&lt;/STRONG&gt; i.MX 8M&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Linux version:&lt;/STRONG&gt; 6.1.151-cip46&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;OpenSSL version:&lt;/STRONG&gt; 3.0.20&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Plug &amp;amp; Trust MW version:&lt;/STRONG&gt; 04.07.01&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Steps Taken:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Built the Plug &amp;amp; Trust MW with the following CMake configuration:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;cmake ../simw-top \
-DPTMW_Applet=SE05X_C \
-DPTMW_SE05X_Ver=07_02 \
-DPTMW_Host=iMXLinux \
-DPTMW_SMCOM=T1oI2C \
-DPTMW_HostCrypto=OPENSSL \
-DPTMW_RTOS=Default \
-DPTMW_mbedTLS_ALT=None \
-DPTMW_SCP=SCP03_SSS \
-DPTMW_FIPS=None \
-DPTMW_SBL=None \
-DPTMW_SE05X_Auth=PlatfSCP03 \
-DPTMW_Log=Default \
-DCMAKE_BUILD_TYPE=Release \
-DPTMW_SE_RESET_LOGIC=1&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Copied simw-top/demos/linux/common/openssl30_sss_se050.cnf from the Plug &amp;amp; Trust MW directory to /root on the i.MX 8M.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Exported the configuration environment variable:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;export&lt;/SPAN&gt; OPENSSL_CONF=/root/openssl30_sss_se050.cnf&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Executed se05x_Minimal to confirm that the SE051 with SCP03 works correctly. &lt;STRONG&gt;It succeeded.&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;App   :INFO :Running bin/se05x_Minimal
App   :INFO :If you want to over-ride the selection, use ENV=EX_SSS_BOOT_SSS_PORT or pass in command line arguments.
App   :INFO :PlugAndTrust_v04.07.01_20250519
App   :INFO :Using default PlatfSCP03 keys. You can use keys from file using ENV=EX_SSS_BOOT_SCP03_PATH
sss   :INFO :atr (Len=35)
      (snip)
App   :INFO :mem=17196
App   :INFO :se05x_Minimal Example Success !!!...
App   :INFO :ex_sss Finished&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Copied libsssapisw.so, libsss_pkcs11.so, and libsssProvider.so to /usr/local/lib/. &lt;I&gt;(Note: /usr/local/lib/ is the path specified in the [nxp_prov_sec] section of /root/openssl30_sss_se050.cnf)&lt;/I&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Executed se05x_Minimal again. This time, &lt;STRONG&gt;it failed&lt;/STRONG&gt; with the following errors:&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Error Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;App   :INFO :Running bin/se05x_Minimal
App   :INFO :If you want to over-ride the selection, use ENV=EX_SSS_BOOT_SSS_PORT or pass in command line arguments.
App   :INFO :PlugAndTrust_v04.07.01_20250519
App   :INFO :Using default PlatfSCP03 keys. You can use keys from file using ENV=EX_SSS_BOOT_SCP03_PATH
sss   :INFO :atr (Len=35)
      (snip)
App   :INFO :If you want to over-ride the selection, use ENV=EX_SSS_BOOT_SSS_PORT or pass in command line arguments.
App   :INFO :Using default PlatfSCP03 keys. You can use keys from file using ENV=EX_SSS_BOOT_SCP03_PATH
sss   :INFO :atr (Len=35)
      (snip)
sss   :ERROR:Error in RAND_pseudo_bytes 
scp   :WARN :nxEnsure:'status == kStatus_SSS_Success' failed. At Line:121 Function:nxScp03_AuthenticateChannel
sss   :ERROR:Could not set SCP03 Secure Channel
App   :ERROR:sss_session_open failed
App   :WARN :nxEnsure:'kStatus_SSS_Success == status' failed. At Line:240 Function:OSSL_provider_init
smCom :ERROR:phNxpEseProto7816_DecodeFrame Max retry count reached!!! 
smCom :ERROR:phNxpEseProto7816_Transceive Transceive failed, hard reset to proceed 
smCom :ERROR: phNxpEse_Transceive phNxpEseProto7816_Transceive- Failed 
smCom :ERROR: Transcive Failed 
sss   :WARN :nxEnsure:'retStatus == SM_OK' failed. At Line:7977 Function:sss_se05x_channel_txn
sss   :WARN :nxEnsure:'ret == SM_OK' failed. At Line:7839 Function:sss_se05x_TXn
sss   :WARN :APDU Transaction Error: Error (0xFFFF)

scp   :ERROR:GP_InitializeUpdate Failure on communication Link FFFF
scp   :ERROR:nxScp03_GP_InitializeUpdate fails with Status 3C3C0000
sss   :ERROR:Could not set SCP03 Secure Channel
App   :ERROR:sss_session_open failed
App   :ERROR:ex_sss_session_open Failed
App   :ERROR:!ERROR! ret != 0.&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;It seems that once the OpenSSL provider is successfully loaded by the configuration, something (possibly related to RAND_pseudo_bytes) breaks the SCP03 channel establishment.&lt;/P&gt;&lt;P&gt;Has anyone encountered this or knows what additional configurations might be missing?&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2026 04:32:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/EdgeLock-SE051-se05x-Minimal-fails-with-SCP03-errors-after/m-p/2383849#M2098</guid>
      <dc:creator>Uc_S</dc:creator>
      <dc:date>2026-06-22T04:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: EdgeLock SE051: se05x_Minimal fails with SCP03 errors after loading OpenSSL Provider</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/EdgeLock-SE051-se05x-Minimal-fails-with-SCP03-errors-after/m-p/2384812#M2100</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/259681"&gt;@Uc_S&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you set up the proper openssl version?&amp;nbsp; Please use the following option:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-DPTMW_OpenSSL=3_0&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BTW, for test purpose, please enable verbose log to have more debug info.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-DPTMW_Log=Verbose&lt;/SPAN&gt;&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, 23 Jun 2026 08:18:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/EdgeLock-SE051-se05x-Minimal-fails-with-SCP03-errors-after/m-p/2384812#M2100</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2026-06-23T08:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: EdgeLock SE051: se05x_Minimal fails with SCP03 errors after loading OpenSSL Provider</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/EdgeLock-SE051-se05x-Minimal-fails-with-SCP03-errors-after/m-p/2385344#M2103</link>
      <description>&lt;P&gt;Thank you very much for your advice. You were exactly right.&lt;/P&gt;&lt;P&gt;The root cause of the issue was indeed the missing "-DPTMW_OpenSSL=3_0" option in my CMake configuration.&lt;/P&gt;&lt;P&gt;After adding&amp;nbsp;"-DPTMW_OpenSSL=3_0 &lt;SPAN&gt;-DPTMW_Log=Verbose&lt;/SPAN&gt;" and rebuilding the MW, the problem was completely resolved. Here are the results:&lt;/P&gt;&lt;P&gt;Executing Step 6 no longer throws any errors. It successfully outputs "App :INFO :mem=17196" as expected.&lt;/P&gt;&lt;P&gt;I also confirmed that even when setting the log level back to my originally intended configuration ("-DPTMW_Log=Default"&amp;nbsp; instead of Verbose), the application still executes perfectly and outputs "App :INFO :mem=17196".&lt;/P&gt;&lt;P&gt;I will mark this topic as resolved.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2026 00:37:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/EdgeLock-SE051-se05x-Minimal-fails-with-SCP03-errors-after/m-p/2385344#M2103</guid>
      <dc:creator>Uc_S</dc:creator>
      <dc:date>2026-06-24T00:37:55Z</dc:date>
    </item>
  </channel>
</rss>

