- Warning
- This function currently DOES NOT validate/verify the whole certificate chain, it just parses out STPUB from the device's certificate, because STPUB is used for handshake.
To verify the whole certificate chain we recommend to download all certificates from chip by using lt_get_info_cert_store() and use any apropriate third party tool to verify validity of certificate chain.
- Parameters
-
| h | Handle for communication with TROPIC01 |
| shipriv | Host's private pairing key for the slot pkey_index |
| shipub | Host's public pairing key for the slot pkey_index |
| pkey_index | Pairing key index |
- Return values
-
| LT_OK | Function executed successfully |
| other | Function did not execute successully, you might use lt_ret_verbose() to get verbose encoding of returned value |