stomp
stomp copied to clipboard
Add SSL support
It would be great if this would support SSL connections. Right now we're using stomp+ssl on port 61613 so we can't use straight tcp connections.
If you want to connect to a server using SSL, you can initiate the connection yourself, and then setup the STOMP connection using the following function:
func Connect(conn io.ReadWriteCloser, opts Options) (*Conn, error)
Or are you using the simple STOMP server implementation and want it to support SSL?
Sorry, I'm still new to go and have been trying to figure out how to do this. Just a connection to a server, namely ActiveMQ.
On Mon, May 19, 2014 at 7:05 PM, John Jeffery [email protected]:
If you want to connect to a server using SSL, you can initiate the connection yourself, and then setup the STOMP connection using the following function:
func Connect(conn io.ReadWriteCloser, opts Options) (*Conn, error)
Or are you using the simple STOMP server implementation and want it to support SSL?
— Reply to this email directly or view it on GitHubhttps://github.com/jjeffery/stomp/issues/10#issuecomment-43569212 .
To create an SSL connection, use the crypto/tls package. See http://golang.org/pkg/crypto/tls/#Dial for details of the function to use to create a connection. The tls.Conn that this function returns can then be passed to the stomp.Connect function, because it implements the io.ReadWriteCloser interface.
This issue is still open, were you planning on adding a convenience method or something?
@alaska: Pull requests are very welcome.
Is this the place to do it, or is go-stomp where all the happenings are?
To be honest, I'm not all that sure. I moved the code to the go-stomp project after the announcement of gopkg, but since that time I'm not sure that it has been picked up by all that many projects. There are some members of the go team who are quite against the concept.
I wish I had not created the go-stomp repository, but now that it's there I'm sure it would cause problems if I removed it. Which repository have you been using?
On Fri, 24 Apr 2015 at 15:07 Andy Walker [email protected] wrote:
Is this the place to do it, or is go-stomp where all the happenings are?
— Reply to this email directly or view it on GitHub https://github.com/jjeffery/stomp/issues/10#issuecomment-95803354.
go-stomp, if only because it looked more authoritative, what with its official-sounding name and all. I'm perfectly fine checking in here, however. I, too, am very reluctant to use gopkg.in, and kind of prefer in-repository versioning.