2023-12-31 09:08 AM
I am using Netx secure for TLS implementation.
here my requirement is to establish a TLS connection with mutual authentication (client and server).I am able to establish the proper handshake with Mutual authentication but the problem is when I try to authenticate the client with chain of certificates (one client certificate + 2 intermediate certificate)
when I’m using only client certificate for the authentication the handshake is happening successfully. But when I’m using 2 certificate handshake is failing. Here I’m using nex_secure_tls_local _certificate _add In order to add client certificate and intermediate certificate. Here I’m concatenating client certificate and intermediate certificate and passing through the above mentioned Netx api.
Please suggest proper implementation method to establish client authentication.
Solved! Go to Solution.
2024-01-02 01:33 AM
Hello @sabari1 an welcome to STCommunity ,
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);
You can refer to this Thread with similar issue .
BR
2024-01-02 01:33 AM
Hello @sabari1 an welcome to STCommunity ,
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);
You can refer to this Thread with similar issue .
BR