How to set RSA key into SE050 using seTool

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

How to set RSA key into SE050 using seTool

452 Views
yang_lee
Contributor III

Hi everyone, now I want to run seTool example to set RSA key into SE050 but it return fail. Is there any problem in the way I am passing the input parameter, where the private.pem file is generated by openssl (openssl genrsa -out private.pem 2048). The error details are shown below in the attached image. Plz help me.

yang_lee_0-1761711665223.png

 

Tags (1)
0 Kudos
Reply
2 Replies

444 Views
yang_lee
Contributor III

The function sss_key_store_set_key() returns the error code SM_ERR_CONDITIONS_OF_USE_NOT_SATISFIED = 0x6985

0 Kudos
Reply

367 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi,

Can you please have a log showing the commands exchanges with the SE?

That would show the 6985. PTMW.log. Also recompile the MW with verbosity. 

 

Regards

Harvey

%3CLINGO-SUB%20id%3D%22lingo-sub-2194764%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHow%20to%20set%20RSA%20key%20into%20SE050%20using%20seTool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2194764%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20everyone%2C%20now%20I%20want%20to%20run%20seTool%20example%20to%20set%20RSA%20key%20into%20SE050%20but%20it%20return%20fail.%26nbsp%3BIs%20there%20any%20problem%20in%20the%20way%20I%20am%20passing%20the%20input%20parameter%2C%20where%20the%20private.pem%20file%20is%20generated%20by%20openssl%20(openssl%20genrsa%20-out%20private.pem%202048).%20The%20error%20details%20are%20shown%20below%20in%20the%20attached%20image.%20Plz%20help%20me.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22yang_lee_0-1761711665223.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22yang_lee_0-1761711665223.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F363000i334DF0F7B14AD45B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22yang_lee_0-1761711665223.png%22%20alt%3D%22yang_lee_0-1761711665223.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2194764%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX%208%20Family%20%7C%20i.MX%208QuadMax%20(8QM)%20%7C%208QuadPlus%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELinux%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESecurity%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2197440%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20set%20RSA%20key%20into%20SE050%20using%20seTool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2197440%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3ECan%20you%20please%20have%20a%20log%20showing%20the%20commands%20exchanges%20with%20the%20SE%3F%3C%2FP%3E%0A%3CP%3EThat%20would%20show%20the%206985.%20PTMW.log.%20Also%20recompile%20the%20MW%20with%20verbosity.%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%3C%2FP%3E%0A%3CP%3EHarvey%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2194767%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20set%20RSA%20key%20into%20SE050%20using%20seTool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2194767%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EThe%20function%20sss_key_store_set_key()%20returns%20the%20error%20code%20%3C%2FSPAN%3ESM_ERR_CONDITIONS_OF_USE_NOT_SATISFIED%20%3D%200x6985%3C%2FP%3E%3C%2FLINGO-BODY%3E