ex_ecc with -DPTMW_SE05X_Auth=ECKey_PlatfSCP03

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ex_ecc with -DPTMW_SE05X_Auth=ECKey_PlatfSCP03

Jump to solution
2,508 Views
KiteJLKo
Contributor II

I'm using Plug & Trust middleware (v04.05.03) from  github plug-and-trust.
Built ex_ecc with CMake flags: -DPTMW_Applet=SE05X_C -DPTMW_HostCrypto=OPENSSL -DPTMW_SE05X_Auth=ECKey_PlatfSCP03

Configured /tmp/SE05X/plain_scp.txt:

 


Running ./ex_ecc /dev/i2c-0 fails with: SE ECDSA Public Key is not Provisioned!!! and sss_session_open failed.

Full log:

App :INFO :PlugAndTrust_v04.05.03_20240502
App :INFO :Running //tmp/ex_ecc
App :INFO :Using PortName='/dev/i2c-0' (CLI)
...
App :WARN :Using SCP03 keys from:'/tmp/SE05X/plain_scp.txt'
App :ERROR:Unknown key type
...
sss :INFO :atr (Len=35) ...
sss :INFO :Newer version of Applet Found
sss :INFO :Compiled for 0x70200. Got newer 0x70216
...
sss :ERROR:SE ECDSA Public Key is not Provisioned!!!
App :ERROR:sss_session_open failed
...

How do I provision the ECDSA public key for ECKey_PlatfSCP03 auth?

 

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
2,213 Views
KiteJLKo
Contributor II

Hi @carlos_o 

Thanks for the previous guidance. I resolved the "SE ECDSA Public Key is not Provisioned" issue with the following steps on SE052F:

  1. Set default session login to SSS_HAVE_SE05X_AUTH_PLATFSCP03.
  2. Run the se05x_Delete_and_test_provision example to perform AddAttestationKeys and ReInitializeTestSample (all succeeded with kSE05x_Result_SUCCESS).
  3. Switch default session login to SSS_HAVE_SE05X_AUTH_ECKEY_PLATFSCP03.

After this, ex_sss_boot_open succeeds, and ./ex_ecc /dev/i2c-0 runs without errors.

Can you confirm if this workflow:SSS_HAVE_SE05X_AUTH_PLATFSCP03 -->provision --> SSS_HAVE_SE05X_AUTH_ECKEY_PLATFSCP03
is correct and recommended?

View solution in original post

0 Kudos
Reply
6 Replies
2,164 Views
KiteJLKo
Contributor II

Hi @carlos_o ,

Thank you for your confirmation.

 

0 Kudos
Reply
2,479 Views
carlos_o
NXP TechSupport
NXP TechSupport

Hi @KiteJLKo 

Could you please provide in which environment are you building the code? (Windows, linux, specific microcontroller)

 

2,431 Views
KiteJLKo
Contributor II
0 Kudos
Reply
2,338 Views
carlos_o
NXP TechSupport
NXP TechSupport

Hi @KiteJLKo 

Could you try to update to SE-PLUG-TRUST-MW_04.07.01? 

0 Kudos
Reply
2,214 Views
KiteJLKo
Contributor II

Hi @carlos_o 

Thanks for the previous guidance. I resolved the "SE ECDSA Public Key is not Provisioned" issue with the following steps on SE052F:

  1. Set default session login to SSS_HAVE_SE05X_AUTH_PLATFSCP03.
  2. Run the se05x_Delete_and_test_provision example to perform AddAttestationKeys and ReInitializeTestSample (all succeeded with kSE05x_Result_SUCCESS).
  3. Switch default session login to SSS_HAVE_SE05X_AUTH_ECKEY_PLATFSCP03.

After this, ex_sss_boot_open succeeds, and ./ex_ecc /dev/i2c-0 runs without errors.

Can you confirm if this workflow:SSS_HAVE_SE05X_AUTH_PLATFSCP03 -->provision --> SSS_HAVE_SE05X_AUTH_ECKEY_PLATFSCP03
is correct and recommended?

0 Kudos
Reply
2,169 Views
carlos_o
NXP TechSupport
NXP TechSupport

Hi @KiteJLKo 

Yes, that is a good approach to provision the key.  

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2196484%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Eex_ecc%20with%20-DPTMW_SE05X_Auth%3DECKey_PlatfSCP03%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2196484%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI'm%20using%20Plug%20%26amp%3B%20Trust%20middleware%20(v04.05.03)%20from%26nbsp%3B%20github%26nbsp%3Bplug-and-trust.%3CBR%20%2F%3EBuilt%20ex_ecc%20with%20CMake%20flags%3A%20-DPTMW_Applet%3DSE05X_C%20-DPTMW_HostCrypto%3DOPENSSL%20-DPTMW_SE05X_Auth%3DECKey_PlatfSCP03%3C%2FP%3E%3CP%3EConfigured%20%2Ftmp%2FSE05X%2Fplain_scp.txt%3A%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CBR%20%2F%3ERunning%20.%2Fex_ecc%20%2Fdev%2Fi2c-0%20fails%20with%3A%20SE%20ECDSA%20Public%20Key%20is%20not%20Provisioned!!!%20and%20sss_session_open%20failed.%3C%2FP%3E%3CP%3EFull%20log%3A%3C%2FP%3E%3CP%3EApp%20%3AINFO%20%3APlugAndTrust_v04.05.03_20240502%3CBR%20%2F%3EApp%20%3AINFO%20%3ARunning%20%2F%2Ftmp%2Fex_ecc%3CBR%20%2F%3EApp%20%3AINFO%20%3AUsing%20PortName%3D'%2Fdev%2Fi2c-0'%20(CLI)%3CBR%20%2F%3E...%3CBR%20%2F%3EApp%20%3AWARN%20%3AUsing%20SCP03%20keys%20from%3A'%2Ftmp%2FSE05X%2Fplain_scp.txt'%3CBR%20%2F%3EApp%20%3AERROR%3AUnknown%20key%20type%3CBR%20%2F%3E...%3CBR%20%2F%3Esss%20%3AINFO%20%3Aatr%20(Len%3D35)%20...%3CBR%20%2F%3Esss%20%3AINFO%20%3ANewer%20version%20of%20Applet%20Found%3CBR%20%2F%3Esss%20%3AINFO%20%3ACompiled%20for%200x70200.%20Got%20newer%200x70216%3CBR%20%2F%3E...%3CBR%20%2F%3Esss%20%3AERROR%3ASE%20ECDSA%20Public%20Key%20is%20not%20Provisioned!!!%3CBR%20%2F%3EApp%20%3AERROR%3Asss_session_open%20failed%3CBR%20%2F%3E...%3C%2FP%3E%3CP%3EHow%20do%20I%20provision%20the%20ECDSA%20public%20key%20for%20ECKey_PlatfSCP03%20auth%3F%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2196484%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3ESmart%20Cards%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2205678%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20ex_ecc%20with%20-DPTMW_SE05X_Auth%3DECKey_PlatfSCP03%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2205678%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F241501%22%20target%3D%22_blank%22%3E%40carlos_o%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20previous%20guidance.%20I%20resolved%20the%20%22SE%20ECDSA%20Public%20Key%20is%20not%20Provisioned%22%20issue%20with%20the%20following%20steps%20on%20SE052F%3A%3C%2FP%3E%3COL%3E%3CLI%3ESet%20default%20session%20login%20to%20%3CSTRONG%3ESSS_HAVE_SE05X_AUTH_PLATFSCP03%3C%2FSTRONG%3E.%3C%2FLI%3E%3CLI%3ERun%20the%20%3CSTRONG%3Ese05x_Delete_and_test_provision%3C%2FSTRONG%3E%20example%20to%20perform%20%3CSPAN%3EAddAttestationKeys%3C%2FSPAN%3E%20and%20%3CSPAN%3EReInitializeTestSample%3C%2FSPAN%3E%20(all%20succeeded%20with%20%3CSPAN%3EkSE05x_Result_SUCCESS%3C%2FSPAN%3E).%3C%2FLI%3E%3CLI%3ESwitch%20default%20session%20login%20to%20%3CSTRONG%3ESSS_HAVE_SE05X_AUTH_ECKEY_PLATFSCP03%3C%2FSTRONG%3E.%3C%2FLI%3E%3C%2FOL%3E%3CP%3EAfter%20this%2C%20%3CSPAN%3Eex_sss_boot_open%3C%2FSPAN%3E%20succeeds%2C%20and%20%3CSPAN%3E.%2Fex_ecc%20%2Fdev%2Fi2c-0%3C%2FSPAN%3E%20runs%20without%20errors.%3C%2FP%3E%3CP%3ECan%20you%20confirm%20if%20this%20workflow%3A%3CSTRONG%3ESSS_HAVE_SE05X_AUTH_PLATFSCP03%26nbsp%3B%3C%2FSTRONG%3E--%26gt%3B%3CSTRONG%3Eprovision%3C%2FSTRONG%3E%20--%26gt%3B%26nbsp%3B%3CSPAN%3E%3CSTRONG%3ESSS_HAVE_SE05X_AUTH_ECKEY_PLATFSCP03%3C%2FSTRONG%3E%3CBR%20%2F%3E%3C%2FSPAN%3Eis%20correct%20and%20recommended%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2202997%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20ex_ecc%20with%20-DPTMW_SE05X_Auth%3DECKey_PlatfSCP03%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2202997%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F246736%22%20target%3D%22_blank%22%3E%40KiteJLKo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECould%20you%20try%20to%20update%20to%26nbsp%3BSE-PLUG-TRUST-MW_04.07.01%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2197108%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20ex_ecc%20with%20-DPTMW_SE05X_Auth%3DECKey_PlatfSCP03%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2197108%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F241501%22%20target%3D%22_blank%22%3E%40carlos_o%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3EMy%20Env%3A%20yocto%20Linux%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2196895%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20ex_ecc%20with%20-DPTMW_SE05X_Auth%3DECKey_PlatfSCP03%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2196895%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F246736%22%20target%3D%22_blank%22%3E%40KiteJLKo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECould%20you%20please%20provide%20in%20which%20environment%20are%20you%20building%20the%20code%3F%20(Windows%2C%20linux%2C%20specific%20microcontroller)%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E