logstash-input-tcp 6.0.0-java → 6.0.1-java
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b302df6e39b800aa93dc56ddeff90534f404c8e322a7d6ac5f359123e964dc3a
|
4
|
+
data.tar.gz: 77db42b004f85076fc336424b8fe30c10ac107c6e4a90ce68e7ffee63159651b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e531556d356c2037e23168faf0848b05ea4a7760e60a04be9a045a69d0cce07b5edb0ea7a84314bd47cad55f050bee5ffcf8e6d186c12796efce1db9cf86e112
|
7
|
+
data.tar.gz: 91b06eee36084aa9de3e7bfd71920d6e0c77085d26e2cc51df7abeec208f540e17c08c06a220b20efe0d6f7b4eaeed4426aee192f1c9d62ebad7d8d61deb00b0
|
data/CHANGELOG.md
CHANGED
@@ -76,7 +76,9 @@ class SslOptions
|
|
76
76
|
# create certificate object
|
77
77
|
cf = CertificateFactory.getInstance("X.509")
|
78
78
|
cert_chain = []
|
79
|
-
|
79
|
+
fetch_certificates_from_file(@ssl_cert_path, cf) do |cert|
|
80
|
+
cert_chain << cert
|
81
|
+
end
|
80
82
|
|
81
83
|
# convert key from pkcs1 to pkcs8 and get PrivateKey object
|
82
84
|
pem_parser = PEMParser.new(FileReader.new(@ssl_key_path))
|
@@ -100,13 +102,19 @@ class SslOptions
|
|
100
102
|
raise "Could not recognize 'ssl_key' format. Class: #{obj.class}"
|
101
103
|
end
|
102
104
|
|
103
|
-
@ssl_extra_chain_certs.each do |
|
104
|
-
|
105
|
+
@ssl_extra_chain_certs.each do |file|
|
106
|
+
fetch_certificates_from_file(file, cf) do |cert|
|
107
|
+
cert_chain << cert
|
108
|
+
end
|
105
109
|
end
|
106
110
|
sslContextBuilder = SslContextBuilder.forServer(private_key, @ssl_key_passphrase, cert_chain.to_java(X509Certificate))
|
107
111
|
|
108
|
-
trust_certs =
|
109
|
-
|
112
|
+
trust_certs = []
|
113
|
+
|
114
|
+
@ssl_certificate_authorities.each do |file|
|
115
|
+
fetch_certificates_from_file(file, cf) do |cert|
|
116
|
+
trust_certs << cert
|
117
|
+
end
|
110
118
|
end
|
111
119
|
|
112
120
|
if trust_certs.any?
|
@@ -116,4 +124,15 @@ class SslOptions
|
|
116
124
|
sslContextBuilder.clientAuth(@ssl_verify ? ClientAuth::REQUIRE : ClientAuth::NONE)
|
117
125
|
sslContextBuilder.build()
|
118
126
|
end
|
127
|
+
|
128
|
+
private
|
129
|
+
def fetch_certificates_from_file(file, cf)
|
130
|
+
fis = FileInputStream.new(file)
|
131
|
+
|
132
|
+
while (fis.available > 0) do
|
133
|
+
yield cf.generateCertificate(fis)
|
134
|
+
end
|
135
|
+
ensure
|
136
|
+
fis.close if fis
|
137
|
+
end
|
119
138
|
end
|
Binary file
|
data/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
6.0.
|
1
|
+
6.0.1
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-tcp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.0.1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,7 +164,7 @@ files:
|
|
164
164
|
- logstash-input-tcp.gemspec
|
165
165
|
- spec/inputs/tcp_spec.rb
|
166
166
|
- spec/spec_helper.rb
|
167
|
-
- vendor/jar-dependencies/org/logstash/inputs/logstash-input-tcp/6.0.
|
167
|
+
- vendor/jar-dependencies/org/logstash/inputs/logstash-input-tcp/6.0.1/logstash-input-tcp-6.0.1.jar
|
168
168
|
- version
|
169
169
|
homepage: http://www.elastic.co/guide/en/logstash/current/index.html
|
170
170
|
licenses:
|