Certificate doesn't parse correctly

Samia Bukhari 26 Reputation points
2022-12-02T07:37:41.86+00:00

I am trying to connect to a server using Azure RTOS, but it is showing parsing error at TLS callback function.

ERROR : _nx_secure_tls_session_packet_buffer_set API failed.
Returned Error Code: 0x1A2

Following is the error message I have received. I have tried it by changing the certificates, and have increased the TLS buffer size as well. But every time the nx_secure_x509_certificate_initialize API fails. Can anybody help me with that?

Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
324 questions
{count} votes

Accepted answer
  1. Tiejun Zhou 1,126 Reputation points Microsoft Employee
    2022-12-14T01:45:11.097+00:00

    Regarding to the error returned from _nx_secure_tls_session_packet_buffer_set, could you paste the code snippet where it returns 0x1A2?

    Here is the link to how to import X.509 certificate into NetX Secure. Let me know if it helps.


0 additional answers

Sort by: Most helpful