Certificate doesn't parse correctly

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

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?