qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yonexw <zw...@liquidcapital.com>
Subject Failed to parse ssl URL
Date Thu, 17 Jan 2013 09:48:03 GMT
I have an urgent issue with ssl connection.I am using qpid c++ client API to
connect to broker with SSL connection.
1. I have setup required environment variables:
    export QPID_SSL_CERT_DB=$RS_DATA/my_cert
    export QPID_LOAD_MODUL=$RS_LIB/sslconnector.so
    export QPID_SSL_CERT_NAME="TEST"
    export QPID_SSL_CERT_PASSWORD_FILE=$RS_DATA/cert_db_pwd.txt
    export QPID_LOG_ENABLE="debug+"
    export QPID_LOG_TO_FILE=$RS_VAR/"qpid.log"
2. My C++ code below:
Connection connect("amqp:ssl:192.168.20.23:5672");
try 
{
    // set connection option
    connect.setOption("reconnect", true);
    connect.setOption("transport", "ssl");
    connect.setOption("sasl-mechanisms", "EXTERNAL");
    connect.setOption("heartbeat", 30);
    connect.open();
    ....
}
But I got failed when call connect.open. the debug log said:
[System] debug Exception constructed: Invalid URL:
amqp:rdma:192.168.20.23:5672

I try to check the apid source code found this exception is thrown by
UrlParser::parse(). which is called by Url::parse(const char* url).
(Url.cpp:253) which default protocol to tcp.  So from the source code the
qpid only support tcp? I also double checked if I set the connection address
to amqp:rdma:192.168.20.23:5672, I also got this error. But if I change to
amqp:tcp:192.168.20.23:5672, the parse can be succesfully.

So is there anybody know why I got ssl url exception when parsing.

Thanks a lot.



--
View this message in context: http://qpid.2158936.n2.nabble.com/Failed-to-parse-ssl-URL-tp7587024.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