Passing an SSL private key password to the connection factory looked up in JNDI in .NET client.

Passing an SSL private key password to the connection factory looked up in JNDI in .NET client.

book

Article ID: KB0090574

calendar_today

Updated On:

Products Versions
TIBCO Enterprise Message Service -
Not Applicable -

Description

Resolution:
Description:
===========
Connection factories looked up in JNDI do not contain the SSL private key password (for security reasons), either in Java or in .NET. How to pass an SSL private key password in .NET client?

Resolution:
=========
SSL Connection factory objects that are looked up in JNDI have a certificate store info already created. This allows a user to get access to the certificate store object and set properties not present in the JNDI object. e.g. ssl password.

A sample code snippet is as the following shown in sample program csLookupSSL.cs:

     EMSSSLFileStoreInfo fileStoreInfo = (EMSSSLFileStoreInfo)sslTopicFactory.GetCertificateStore();
     fileStoreInfo.SetSSLClientIdentity(ssl_identity);
     string _sslpassword = ssl_password;
     fileStoreInfo.SetSSLPassword(_sslpassword.ToCharArray());

Issue/Introduction

Passing an SSL private key password to the connection factory looked up in JNDI in .NET client.