tls-checker 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -1
- data/lib/tls-checker/certificate_checker.rb +16 -3
- data/lib/tls-checker/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 326f4de5b655454e93e3453e227d4fb05f70cd8bb3c2e55ebfcd2da42dac2dd3
|
4
|
+
data.tar.gz: ee887d5def9bebaf1feca5edd1a1fc400b8d4e783e690886e4562c7d8a0e5e55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e76c9ad4a2c28eac92217092fbade0cca5d99b389df5fe7d910cec5bc11eba26178b429fea87420724b24d4695e8561348ba87e5d0b704e7f9cae46887f1474
|
7
|
+
data.tar.gz: 2049b8cbfe64603900503fd4c4d75cef18b6d7693c325a1a359a3c75f34f0a420df0a27ba921ebe53954fef34134a7d07d5617fb0e70f90e3966c2ac58d1318b
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [1.4.0]
|
9
|
+
|
10
|
+
### Added
|
11
|
+
|
12
|
+
- New metadata in generated events: af (address fanily, one of 'inet' and
|
13
|
+
'inet6'), hostname, address and port.
|
14
|
+
|
15
|
+
### Changed
|
16
|
+
|
17
|
+
- Ensure events' ttl is an Integer.
|
18
|
+
|
8
19
|
## [1.3.0]
|
9
20
|
|
10
21
|
### Changed
|
@@ -34,7 +45,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
34
45
|
- Make it possible to test services using an IP address;
|
35
46
|
- Report validity of certificates when a TLSA record is found in the DNS.
|
36
47
|
|
37
|
-
[Unreleased]: https://github.com/smortex/tls-checker/compare/v1.
|
48
|
+
[Unreleased]: https://github.com/smortex/tls-checker/compare/v1.4.0...HEAD
|
49
|
+
[1.4.0]: https://github.com/smortex/tls-checker/compare/v1.3.0...v1.4.0
|
38
50
|
[1.3.0]: https://github.com/smortex/tls-checker/compare/v1.2.0...v1.3.0
|
39
51
|
[1.2.0]: https://github.com/smortex/tls-checker/compare/v1.1.1...v1.2.0
|
40
52
|
[1.1.1]: https://github.com/smortex/tls-checker/compare/v1.1.0...v1.1.1
|
@@ -28,9 +28,13 @@ module TLSChecker
|
|
28
28
|
description: @certificate_failure || "#{hostname} does not have a valid certificate",
|
29
29
|
}
|
30
30
|
end.merge(
|
31
|
-
service:
|
32
|
-
|
33
|
-
|
31
|
+
service: service,
|
32
|
+
af: af,
|
33
|
+
hostname: hostname,
|
34
|
+
address: address.to_s,
|
35
|
+
port: port,
|
36
|
+
ttl: 12.hours.to_i,
|
37
|
+
tags: ['tls-checker'],
|
34
38
|
)
|
35
39
|
end
|
36
40
|
|
@@ -64,6 +68,15 @@ module TLSChecker
|
|
64
68
|
|
65
69
|
private
|
66
70
|
|
71
|
+
def af
|
72
|
+
case @address
|
73
|
+
when Resolv::IPv4
|
74
|
+
'inet'
|
75
|
+
when Resolv::IPv6
|
76
|
+
'inet6'
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
67
80
|
def tls_socket
|
68
81
|
@tls_socket ||= case starttls
|
69
82
|
when :smtp
|
data/lib/tls-checker/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tls-checker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Romain Tartière
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: internet_security_event
|