qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Sim <g...@redhat.com>
Subject Re: Unknown protocol: ssl for C++ client
Date Tue, 26 Aug 2014 12:05:28 GMT
On 08/26/2014 11:31 AM, nidhal.kort wrote:
> Hi,
> Thanks Andreas and Gordon.
> Following this note
> "Note: The deprecated qpid::client API will be removed in the next release.
> Users should instead use the Qpid Messaging API."
>
> I've decided to use qpid::messaging API instead of qpid::client api.
>
> I've followed the edvice of Andreas,
>
> std:string broker("IP:port");
> Connection connection(broker, "{transport:ssl}");
>
> But still having the same error (if I replace ssl with tcp the error doesn't
> occur but I need to work with ssl)
>
> I compile with this command:
>
> g++ -I/....../abelaid/QpidBuild/RH5_PKG/Debug/include/
> -L/....../abelaid/QpidBuild/RH5_PKG/Debug/lib -lqpidmessaging
> -L/....../abelaid/QpidBuild/RH5_PKG/Debug/lib/qpid/client -lsslconnector -o
> conn3 Connection3.cpp
>
> And when I run my binary (with the log activated):
>
>
> 2014-08-26 12:19:04 [System] debug Exception constructed: Failed: NSS error
> [-8174] (qpid/sys/ssl/util.cpp:103)
> 2014-08-26 12:19:04 [Security] error Failed to initialise SSL connector:
> Failed: NSS error [-8174] (qpid/sys/ssl/util.cpp:103)

-8174 is SEC_ERROR_BAD_DATABASE. Does the user running this code have 
read permission for the certificate database director? Can that user run 
e.g. certutil -V /path/to/cert_db?



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


Mime
View raw message