Discussion:
[rabbitmq-users] SSL Connection from RabbitMQ C Client
Aylin Koroglu
2015-07-28 07:02:27 UTC
Permalink
Dear all,


I'm trying to connect to RabbitMQ Server (on Linux machine) from the
RabbitMQ C Client Application (on Solaris machine) using SSL connection.
(We are using the following RabbitMQ C library:
https://github.com/alanxz/rabbitmq-c/ )

Is it needed to import the certificates like we do in Java ? Or is it
enough just to copy the certificates and the key file to the client
machine, and specify the certificate paths in the source code ?

I am newbie to C. Any help would be highly appreciated.


Thank you.

Aylin
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jean-Sébastien Pédron
2015-07-28 08:23:57 UTC
Permalink
Post by Aylin Koroglu
I'm trying to connect to RabbitMQ Server (on Linux machine) from the
RabbitMQ C Client Application (on Solaris machine) using SSL connection.
https://github.com/alanxz/rabbitmq-c/ )
Is it needed to import the certificates like we do in Java ? Or is it
enough just to copy the certificates and the key file to the client
machine, and specify the certificate paths in the source code ?
Hi!

The latter is true: the library API takes the path to the certificate
and key files as arguments. There is no such certificate registry.
--
Jean-Sébastien Pédron
Pivotal / RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Aylin Koroglu
2015-07-28 08:42:36 UTC
Permalink
Does the format of the certificates (cer or pem) matter ?
Post by Jean-Sébastien Pédron
Post by Aylin Koroglu
I'm trying to connect to RabbitMQ Server (on Linux machine) from the
RabbitMQ C Client Application (on Solaris machine) using SSL connection.
https://github.com/alanxz/rabbitmq-c/ )
Is it needed to import the certificates like we do in Java ? Or is it
enough just to copy the certificates and the key file to the client
machine, and specify the certificate paths in the source code ?
Hi!
The latter is true: the library API takes the path to the certificate
and key files as arguments. There is no such certificate registry.
--
Jean-Sébastien Pédron
Pivotal / RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jean-Sébastien Pédron
2015-07-28 08:48:25 UTC
Permalink
Post by Aylin Koroglu
Does the format of the certificates (cer or pem) matter ?
Whatever OpenSSL likes. I think most applications use PEM.
--
Jean-Sébastien Pédron
Pivotal / RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Aylin Koroglu
2015-07-28 10:36:10 UTC
Permalink
I'm trying to adapt the following example
https://github.com/alanxz/rabbitmq-c/blob/master/examples/amqps_sendstring.c
to my source code.

I couldn't figure out, how can I specify the SSL version (TLS1.2) ? Any
idea ?
Post by Jean-Sébastien Pédron
Post by Aylin Koroglu
Does the format of the certificates (cer or pem) matter ?
Whatever OpenSSL likes. I think most applications use PEM.
--
Jean-Sébastien Pédron
Pivotal / RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Alan Antonuk
2015-07-28 20:55:46 UTC
Permalink
Currently there isn't a way to pin the desired SSL version, it simply
negotiates based on what the server is advertising.

-Alan
Post by Aylin Koroglu
I'm trying to adapt the following example
https://github.com/alanxz/rabbitmq-c/blob/master/examples/amqps_sendstring.c
to my source code.
I couldn't figure out, how can I specify the SSL version (TLS1.2) ? Any
idea ?
Post by Jean-Sébastien Pédron
Post by Aylin Koroglu
Does the format of the certificates (cer or pem) matter ?
Whatever OpenSSL likes. I think most applications use PEM.
--
Jean-Sébastien Pédron
Pivotal / RabbitMQ
--
You received this message because you are subscribed to the Google Groups
"rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Aylin Koroglu
2015-07-31 07:05:57 UTC
Permalink
Thanks a lot Alan. We were able to make the C Client work with SSL
connection on Solaris Sparc..
Post by Alan Antonuk
Currently there isn't a way to pin the desired SSL version, it simply
negotiates based on what the server is advertising.
-Alan
Post by Aylin Koroglu
I'm trying to adapt the following example
https://github.com/alanxz/rabbitmq-c/blob/master/examples/amqps_sendstring.c
to my source code.
I couldn't figure out, how can I specify the SSL version (TLS1.2) ? Any
idea ?
Post by Jean-Sébastien Pédron
Post by Aylin Koroglu
Does the format of the certificates (cer or pem) matter ?
Whatever OpenSSL likes. I think most applications use PEM.
--
Jean-Sébastien Pédron
Pivotal / RabbitMQ
--
You received this message because you are subscribed to the Google Groups
"rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
<javascript:>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...