qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Welchlin <andr...@welchlin.de>
Subject Re: Unknown protocol: ssl for C++ client
Date Mon, 18 Aug 2014 11:08:15 GMT
Hi Nidhal,

try to give the connection a property list as string like:

Connection connection(brokerUrl, "{transport:ssl}");

On my system this works. Please be aware that the property name is 
"transport" and not "protocol".


Regards,
Andreas







Am 18.08.2014 um 12:57 schrieb nidhal.kort:
> 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
>



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


Mime
View raw message