qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nidhal.kort" <kortnidha...@gmail.com>
Subject Unknown protocol: ssl for C++ client
Date Mon, 18 Aug 2014 10:57:32 GMT
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?
Thanks



--
View this message in context: http://qpid.2158936.n2.nabble.com/Unknown-protocol-ssl-for-C-client-tp7611980.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Mime
View raw message