Shielded connection is not working #103
-
Hello, I'm using Optiga Trust M V1 and I've been able to pair Optiga with Host via Binding Secret (I've updated metadata with Operational state). With the following settings of crypt and util instances that are set after opening application in initialization function, everything seems to work.
If the secret on host is equal to the secret written to Optiga, no errors occur. If the secret on Host is different, there's OPTIGA_COMMS_ERROR_HANDSHAKE error. That is the behavior that I need. But if I don't specify the protection level and protocol version, Optiga ignores the wrong secret from host and executes e.g. optiga_crypt_ecdsa_sign function without any errors. Is this a correct behavior? In that way it seems that a malefactor can connect to Optiga, send any command without setting up level and protocol version and get confidential data (e.g. signature). Could you please help me figure this out and tell me if I might be doing something wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @SoftAvocado ,
In order to protect Data or Key objects from unauthorized access two things shall be done, first - setting up the Platform Binding Secret on both sides of the setup (Host MCU and OPTIGA) + defining the protection level for the communication, this is exactly what you have done already and it seems to work fine; second part is to setup corresponding metadata of the object you would like to protect, this part looks like a missing step in your setup. Relevant example on how such settings might look like: you have a secret data stored in an object id 0xF0D0 and you would like to allow to read the data inside it only if a shielded connection is established, then you need to write the following expression into the metadata of the 0xf0d0 object using the
The expression |
Beta Was this translation helpful? Give feedback.
Hello @SoftAvocado ,
In order to protect Data or Key objects from unauthorized access two things shall be done, first - setting up the Platform Binding Secret on both sides of the setup (Host MCU and OPTIGA) + defining the protection level for the communication, this is exactly what you have done already and it seems to work fine; second part is to setup corresponding metadata of the object you would like to protect, this part looks like a missing step in your setup.
More about acces…