cancel
Showing results for 
Search instead for 
Did you mean: 

Chain of certificate(multiple certificates) usage in Netx Secure

Nitin
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
STea
ST Employee

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

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
STea
ST Employee

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

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Nitin
Associate III

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