Skip to main content
Nitin
Associate III
December 1, 2023
Solved

Chain of certificate(multiple certificates) usage in Netx Secure

  • December 1, 2023
  • 1 reply
  • 1522 views

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.

This topic has been closed for replies.
Best answer by STea

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

1 reply

STeaBest answer
ST Employee
December 5, 2023

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

Nitin
NitinAuthor
Associate III
December 12, 2023

Thanks @STea for prompt reply. I will shortly get back after experimenting this.