amqp-client 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bce748ffe46469f11bfecc13b7f7b7967cacdffb06b535dd6aff7377070c8c66
4
- data.tar.gz: db388d3c3ddcd86df118621f33d486b01e78bb10a4d4696aba829dab86a14936
3
+ metadata.gz: 83f84f34aa2aacb3719e300483d4a874bc54892e12165b74f895a7503fd3c550
4
+ data.tar.gz: b53ba2a5bdbb1620f839f2cca8d66c1ee3db13549360b04e51d018208c1f7b49
5
5
  SHA512:
6
- metadata.gz: cbcd67199658ecaddb418eeb540e3ad2685df8f5b9b050631ad5baa40dc93f3f74ddd04d17750d677388f5546653ec408ae8ffea02ab65eedacded2a1dc851aa
7
- data.tar.gz: e0825a87830cdf054d43a2cabe4e7dd55bded23203b2e8999b41ba0601ef8593460580283a2ad34622ad4b59198a4c537ee9b9c0c413dc76495858c629af795f
6
+ metadata.gz: 62aa1fddfbc285ab34e52b3f0421c2a017e157a1e4e6d7c887da78f55c56bb4717a4466bf0ad1ee08a03b485dd55910d38a1b6809d35e373eda1eb248e4cdd33
7
+ data.tar.gz: e60e191045e97a268faceb9e3a8112458aa920307e0bf29cdf0d24194c10b0c4254794ab335995019c7b3b41a2fafc383aaee1736584cd618684f6044d760f15
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
3
 
4
+ ## [0.2.3] - 2021-08-19
5
+
6
+ - Improved TLS/AMQPS support
7
+
4
8
  ## [0.2.2] - 2021-08-19
5
9
 
6
10
  - TLS port issue fixed
@@ -25,10 +25,15 @@ module AMQP
25
25
  socket = Socket.tcp host, port, connect_timeout: 20, resolv_timeout: 5
26
26
  enable_tcp_keepalive(socket)
27
27
  if tls
28
+ cert_store = OpenSSL::X509::Store.new
29
+ cert_store.set_default_paths
28
30
  context = OpenSSL::SSL::SSLContext.new
31
+ context.cert_store = cert_store
29
32
  context.verify_mode = OpenSSL::SSL::VERIFY_PEER unless [false, "false", "none"].include? options[:verify_peer]
30
33
  socket = OpenSSL::SSL::SSLSocket.new(socket, context)
31
34
  socket.sync_close = true # closing the TLS socket also closes the TCP socket
35
+ socket.hostname = host # SNI host
36
+ socket.connect
32
37
  end
33
38
  channel_max, frame_max, heartbeat = establish(socket, user, password, vhost, **options)
34
39
  Connection.new(socket, channel_max, frame_max, heartbeat, read_loop_thread: read_loop_thread)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module AMQP
4
4
  class Client
5
- VERSION = "0.2.2"
5
+ VERSION = "0.2.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amqp-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carl Hörberg