[rabbitmq-discuss] rabbitmq-c - "SSL peer cert verification failed"
alan.antonuk at gmail.com
alan.antonuk at gmail.com
Thu May 29 05:10:17 BST 2014
You need to provide both the certificate chain file and the private key
file (they're not the same file).
To debug this with the openssl s_client command, you'll need to pass in the
-verify, -key and -cert flags with appropriate values.
HTH
-Alan
On Wed May 28 2014 at 7:45:52 AM, Dan Berger <dberger at fiveringscapital.com>
wrote:
> I’m just starting development on a c++ client app to connect to a vendor’s
> server.
>
>
>
> I’m trying the SimpleAmqpClient library which is built on top of
> rabbitmq-c.
>
>
>
> The provided a self-signed client certificate in .p12 format that I’ve
> converted to .pem. This contains a public and private key and also a CA
> public key.
>
>
>
> I’m now trying to connect while providing the .pem file as the CA cert,
> client cert and client private key.
>
>
>
> While connecting, I get:
>
> 'AmqpClient::AmqpLibraryException'
>
> what(): Error setting client certificate for socket: SSL peer cert
> verification failed
>
>
>
> Digging into rabbitmq-c, I see this is due to the call to
> amqp_ssl_socket_set_key failing.
>
>
>
> Running openssl s_client seems to work fine, so I’m not sure what I’m
> doing wrong. Any ideas?
>
>
>
> -Dan
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140529/9ae301d8/attachment.html>
More information about the rabbitmq-discuss
mailing list