Modified connect method so tls.connect options can be supplied.#1
Modified connect method so tls.connect options can be supplied.#1squaremo merged 1 commit intoamqp-node:masterfrom
Conversation
…ls connection can be supplied.
|
Thank you muchly for the pull request. I wrote a small example. Would you try it out? It's in master. |
|
Thank you. Yes. I will test the example this evening after work. On Thu, Jun 13, 2013 at 6:57 PM, Michael Bridgen
|
|
Sorry for the delay in response. Yes, everything worked great, thank you. |
|
Great stuff! By the way, I wrote a guide to using SSL for the docs: http://squaremo.github.io/amqp.node/doc/ssl.html. |
|
Awesome write up. I think the table for "What you want to achieve" is a I will add one thing to what you wrote. I encountered the [Error: In my case, what I want is a secure connection from client to server, with On Tue, Jun 18, 2013 at 8:51 AM, Michael Bridgen
|
|
Quite right, you definitely do not want to use With respect to the self-signed cert problem, there's a couple of things I'd check: one is that you are supplying the certificate of the CA that has signed the server certificate (it has tripped me up before, especially when regenerating certificates during trial runs); another is that you can connect, with the same set of files, using s_client. Something like OpenSSL will tell you if there's a problem and show you the certificates in ASCII armour so you can check them against the files. |
|
You are exactly right, I had grabbed the server certificate and not the Now I am just dealing with the Hostname/IP not matching even though I've Thanks. On Tue, Jun 18, 2013 at 10:18 AM, Michael Bridgen
|
|
Got it... had to use the right domain name. Thanks. On Tue, Jun 18, 2013 at 10:25 AM, Edward Kline [email protected] wrote:
|
To connect with tls using certificates, one needs to pass the options such as key, cert, and ca.
I modified the connect method slightly to allow passing those options to tls.connect.
I also modified the listen event to listen for the event 'secureConnect' as defined in the tls documentation.
I hope you find this useful. Thanks for the great libraries.