2023-11-30 08:54 PM
Hi, I am looking for some API which supports chain of certificate feature for NetxSecure TLS, Just like mbedtls_ssl_conf_ca_chain() API in MbedTLS.Need help. Thanks in advance.
Solved! Go to Solution.
2023-12-05 04:08 AM
Hello @Nitin ,
To create a chain of certificates Netx secure does not provide a specific API but this can be achieved by manually adding the certificates in their order with the following API call:
UINT nx_secure_tls_trusted_certificate_add(NX_SECURE_TLS_SESSION
*session_ptr, NX_SECURE_X509_CERT *certificate_ptr);
so you will initialize the certificates you want in your chain of certificates one by one then add them using the above add API and be sure to add the certificates in the order of the chain, . Refer to the NETX documentation in this section for more details .
BR
2023-12-05 04:08 AM
Hello @Nitin ,
To create a chain of certificates Netx secure does not provide a specific API but this can be achieved by manually adding the certificates in their order with the following API call:
UINT nx_secure_tls_trusted_certificate_add(NX_SECURE_TLS_SESSION
*session_ptr, NX_SECURE_X509_CERT *certificate_ptr);
so you will initialize the certificates you want in your chain of certificates one by one then add them using the above add API and be sure to add the certificates in the order of the chain, . Refer to the NETX documentation in this section for more details .
BR
2023-12-12 09:35 AM
Thanks @STea for prompt reply. I will shortly get back after experimenting this.