certificate-checker 1.0.1 → 1.1.0

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: 7aa16080082c6c62adc92757d4138dc81aff8d7698e9f451c87323d51eec0a3f
4
- data.tar.gz: 1767f58737fd1048ba78b80988f360543ac29440b8a69625817046124c3f4688
3
+ metadata.gz: eaba1b03f400c3255649451e82bdd578e4ae46c1865c4561d7b33430a2243482
4
+ data.tar.gz: 1a6e3b5d31e601d1ae34688a394cf2143e29a3a392927b2221f0f8606a71deb0
5
5
  SHA512:
6
- metadata.gz: 3aeafffd6487f8841545f28f853c51897e9533f051f58cb9747145ca9c0adb6fa2f93233eed1f1f0254f30a39e82f095fef11b8c66459dd913d9afd037bf43f4
7
- data.tar.gz: 42f794cd0923d135526326eca023c769f5626474767081c68eba3ec562133732233bc021aaa3948f8e3e52bc8c9fc80002bde35ae4e3f5aa855719028a51b34d
6
+ metadata.gz: f9bb25a04d0dd331b4842dcb261f46e443d491021b05914ca96447e360c10a4f5662876d3d3fa55fe0384f176ffe36b36eb2e4c42e190b8a7e201bffb3f0d8f2
7
+ data.tar.gz: ac4c2990000aa01608be8752b69b057a5cbeaa0944fc1c98ff8d02223cb8f7920d8c5ff2c9bab861ce1e022deaeec2d2f3217b8a0d0c9afd34bce3097c5e91cd
data/CHANGELOG.md ADDED
@@ -0,0 +1,19 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [1.1.0]
9
+
10
+ - Use certificate issuer and subject rather than file line to identify a
11
+ certificate in a certificate file.
12
+
13
+ ## [1.0.1]
14
+
15
+ - Fix on Debian Stretch.
16
+
17
+ [Unreleased]: https://github.com/smortex/tls-checker/compare/v1.1.0...HEAD
18
+ [1.1.0]: https://github.com/smortex/tls-checker/compare/v1.0.1...v1.1.0
19
+ [1.0.1]: https://github.com/smortex/tls-checker/compare/v1.0.0...v1.0.1
@@ -16,6 +16,7 @@ module CertificateChecker
16
16
  def to_e
17
17
  InternetSecurityEvent::X509Status.build(certificate).merge(
18
18
  service: service,
19
+ line: line,
19
20
  ttl: 3600 * 12,
20
21
  tags: ['certificate-checker'],
21
22
  )
@@ -24,7 +25,7 @@ module CertificateChecker
24
25
  private
25
26
 
26
27
  def service
27
- "#{file}:#{line}"
28
+ "#{file}:#{certificate.issuer}:#{certificate.subject}"
28
29
  end
29
30
  end
30
31
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CertificateChecker
4
- VERSION = '1.0.1'
4
+ VERSION = '1.1.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: certificate-checker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.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-02-19 00:00:00.000000000 Z
11
+ date: 2019-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: internet_security_event
@@ -91,6 +91,7 @@ files:
91
91
  - ".gitignore"
92
92
  - ".rspec"
93
93
  - ".travis.yml"
94
+ - CHANGELOG.md
94
95
  - CODE_OF_CONDUCT.md
95
96
  - Gemfile
96
97
  - LICENSE.txt
@@ -125,8 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
126
  - !ruby/object:Gem::Version
126
127
  version: '0'
127
128
  requirements: []
128
- rubyforge_project:
129
- rubygems_version: 2.7.8
129
+ rubygems_version: 3.0.2
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: Report expired/about to expires certificates in a directory tree.