-
Generate the files client.pem, client.cert, and client.key on each client machine using openssl version 1.0.1c:
openssl genrsa 1024 > client.key chmod 400 client.key openssl req -new -x509 -nodes -sha1 -days 365 -key client.key > client.cert openssl x509 -in client.cert -text > client.pem
This example adds the SSL connection information to the .NET client connection string:
String connectionString = ""; connectionString += "uid=db_superuser;pwd=db_superuser;dbname=beehive;ip=153.65.178.185;port=2406;EnableSSL=1;sslcertificatepath=c:\\SSL_Relate\\client_cert\\client.cert;sslprivatekeypath=c:\\SSL_Relate\\client_cert client.key";