On 08/18/2014 11:57 AM, nidhal.kort wrote:
Hi,

I'm trying to run a C++ client but I'm getting this error message :
*Unknown protocol: ssl (qpid/client/Connector.cpp:52)*

I've set and exported these variables:

set QPID_SSL_CERT_DB = nkort/certif
set QPID_SSL_CERT_NAME = CertificationName.crt
set QPID_SSL_CERT_PASSWORD_FILE = nkort/certif/qpid_Client_Pwd
set QPID_LOAD_MODULE =
abelaid/QpidBuild/RH5_PKG/Debug/lib/qpid/client/sslconnector.so


int main (int argc,char** argv)
{

     ConnectionSettings settings;
     Connection connection;
     settings.protocol="ssl";
     settings.tcpNoDelay = true;
     settings.host="........"; //the IP adress
     settings.port=xxxxx;  //the port
     settings.sslCertName="CertificationName.crt";
     try

     {
         connection.open(settings);
         Session session =  connection.newSession();
          std::cout<<"connecting ..."<< std::endl;
         connection.close();
         return 0;
     }
     catch(const std::exception& error)
     {
         std::cout << error.what() << std::endl;
     }
     return 1;
}

Any idea what could be the problem please?

Turn up the logging, e.g. with export QPID_LOG_ENABLE=trace+ and see if there are any issues reported


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to