faye-websocket 0.11.1 → 0.11.2

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: 5d911cb9311b3ebcba587cea651bc49cf4ba29db10ef7b3c0b9bb7440571e39e
4
- data.tar.gz: 81a0a87fd328f88730e84033ad795b28d969d12dfd7bcdd6c5f93e12b865bf44
3
+ metadata.gz: eb4b4ae774c914839c9b5b45496d4eb31d9c0603ada45373b8de2055d5231dc5
4
+ data.tar.gz: 666a6f3a350022a7cbf3df69f8f7d292fb912f5b8e9b05b8ba3b194b07be5940
5
5
  SHA512:
6
- metadata.gz: 7c4bc1540dcb37c6c7ed508ae0d459878fef3b66009acd26555ee63b3a7013ba262cffb6fe82120385a002e12847e5c3c33ec3c44cb7ba1e7be7e7f730b1ab05
7
- data.tar.gz: 953bdb31da0463fbda511ca4b1276ce88a5e2e9273d52c34e4b13eb018d4dec41c1dbd678c8ebcad700a4230e26dc9576d89753fbebd743e743e1bdb48da394c
6
+ metadata.gz: b9475c32e62af18f17a56b0cdf26df4916cc3035d92cbd9be733fb5ae8da0bf57124385625a11558196cade588be91ab81bafc5ad8ef516b7ab09cfaeb8a3cb7
7
+ data.tar.gz: 4a81daa717bda6a500a03e9b60b4b303c7e071d8d262bb763112a0cf75dba7d6f637db6448988a9ccc3149951440be12db165e1cbe0d1b593aaa603519d6ac89
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### 0.11.2 / 2023-04-04
2
+
3
+ - Handle SSL certificate chains where not all the intermediate certificates are
4
+ recognised by the client
5
+
1
6
  ### 0.11.1 / 2021-05-24
2
7
 
3
8
  - Prevent the client hanging if `close()` is called when already closing
@@ -42,14 +42,13 @@ module Faye
42
42
  return true unless should_verify?
43
43
 
44
44
  certificate = parse_cert(cert_text)
45
- return false unless certificate
46
-
47
- unless @cert_store.verify(certificate)
48
- raise SSLError, "Unable to verify the server certificate for '#{ @hostname }'"
45
+ unless certificate
46
+ raise SSLError, "Unable to parse SSL certificate for '#{ @hostname }'"
49
47
  end
50
48
 
51
- store_cert(certificate)
52
49
  @last_cert = certificate
50
+ @last_cert_verified = @cert_store.verify(certificate)
51
+ store_cert(certificate) if @last_cert_verified
53
52
 
54
53
  true
55
54
  end
@@ -57,6 +56,10 @@ module Faye
57
56
  def ssl_handshake_completed
58
57
  return unless should_verify?
59
58
 
59
+ unless @last_cert_verified
60
+ raise SSLError, "Unable to verify the server certificate for '#{ @hostname }'"
61
+ end
62
+
60
63
  unless identity_verified?
61
64
  raise SSLError, "Host '#{ @hostname }' does not match the server certificate"
62
65
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faye-websocket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Coglan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-24 00:00:00.000000000 Z
11
+ date: 2023-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine