michaelklishin / langohr

A small, feature complete Clojure client for RabbitMQ that embraces AMQP 0.9.1 model

Home Page:http://clojurerabbitmq.info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for hostname verification

jming422 opened this issue · comments

The RabbitMQ Java client provides the option for enabling hostname verification on connections using SSL/TLS by calling enableHostnameVerification on the ConnectionFactory after calling useSslProtocol. Currently hostname verification doesn't seem to be available using Langohr.

It would be great if langohr.core/connect could take another setting like :verify-hostname, which, if non-nil, would add (.enableHostnameVerification) to langhor.core/create-connection-factory here:

Contributions are welcome.

@jming422 please take a look at master (e.g. the tls-test suite).