TLS Client Authentication in /n software Components
TLS is widely used on the web to provide encrypted communication and to verify the identity of one or both parties in a connection. In most cases, such as HTTPS, only the server's identity is verified. However, in certain scenarios (for example, 3D Secure), the client's identity must also be authenticated.
Client authentication is supported by /n software components that implement SSL/TLS. To enable it, provide a valid certificate containing a private key through the SSLCert property, which the component will automatically use when establishing the connection.
The following examples demonstrate how to configure client authentication.
In C#:
http.SSLCert = new Certifcate(CertStoreTypes.cstPFXFile, @"C:\path\to\your\certificate-with-private-key.pfx", "password", "CN=Steves Certificate");
// An asterisk (*) may be passed in lieu of the subject to select any certificate from the store.
And in C++:
http.SetSSLCertStoreType(CST_PFXFILE);
http.SetSSLCertStore("C:\\path\\to\\your\\certificate-with-private-key.pfx");
http.SetSSLCertStorePassword("password");
http.SetSSLCertSubject("CN=Steves Certificate");
For further information on the above property and related properties, the Certificate type, and possible values, please refer to the documentation for the specific product.
We appreciate your feedback. If you have any questions, comments, or suggestions about this article please contact our support team at support@nsoftware.com.