Failing to load "trustm_engine" incorrect key returned #90
Replies: 10 comments 2 replies
-
Hi @Kitty-Hawk1 |
Beta Was this translation helpful? Give feedback.
-
I have a couple of suggestions, please try and let us know:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
In the function optiga_cmd_open_application_handler(), which is called by the function in line
I believe you have issues in writing into the datastore and hence you get OPTIGA_CMD_ERROR (0x0202). Can you debug and check if this is really the issue? |
Beta Was this translation helpful? Give feedback.
-
The handler is not being called
However we I send the command via the command line it is
|
Beta Was this translation helpful? Give feedback.
-
So, open Application works? |
Beta Was this translation helpful? Give feedback.
-
optiga_cmd_open_application works in one path through the code [when called from the command line via openss exel], when used to create a SSL/TLS connection using the openssl library it doesn't :-( Note - when creating the SSL/TLS connection openssl is attempting to check that the public key [which is contained within the private key], matches the X.509 certificate attached |
Beta Was this translation helpful? Give feedback.
-
There are 2 separate issues:
Another thing to note is that public key is not contained in the private key. Only openssl does this, it stores the public private key pair on key generation. Later, public key can be extracted from this. This is not the case with Optiga private key object (0xE0F1). It does not matter to Optiga, whether public key is stored or private key is stored or keypair is stored in this object. You can never read this object. Only Optiga can read this when you request signature generation. In case a keypair or wrong format key is stored here, the signature generation will fail. See section 6.2 (appendix) of Solution Reference Manual to check how keys are stored in Optiga. Please provide feedback on 1 and 2. |
Beta Was this translation helpful? Give feedback.
-
Can you try "0xe0f1:^". ^ sign means to use default key store at 0xF1D1, See here for more details public key input options
|
Beta Was this translation helpful? Give feedback.
-
Thanks will try 0xe0f1:^ But need to resolve why initialization fails first, will try newer baseline.
|
Beta Was this translation helpful? Give feedback.
-
I'm seeing the error below, any suggestions ?
When I run a command line the key returned is
The build is
And the code being executed is
Beta Was this translation helpful? Give feedback.
All reactions