sensu-plugins-ssl 1.2.0 → 1.3.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 +6 -1
- data/bin/check-java-keystore-cert.rb +4 -3
- data/lib/sensu-plugins-ssl/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56d1fd89252eb63452051047b469061990116965
|
4
|
+
data.tar.gz: cb62e2d86e3e49c293d2ae5a84ace67589df9197
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cec3f3b39df1f3615c349a7f9dfcd6ab06093c0c157e09fd9beeb9d82738166263be9ffec4ecd612257734dcc6d5ae0ad1e93c409413eb65e6403f9de56168b
|
7
|
+
data.tar.gz: 60583c756bf66ba2fab1346b1d3f41e27e14a6ee7b5d1ff9d5c35abd3661880efcfe7945094c543e9a5a030f12253a03d58d51c4e79d28e96a439492421037f0
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
4
4
|
This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
|
+
## [1.3.0] 2017-05-18
|
8
|
+
### Changed
|
9
|
+
- `check-java-keystore-cert.rb`: Escape variables sent to shell on calls to keytool. (@rs-mrichmond)
|
10
|
+
|
7
11
|
## [1.2.0] - 2017-05-17
|
8
12
|
### Changed
|
9
13
|
- check-ssl-qualys.rb: removed dependency on rest-client so we don't need a c compiler (@baweaver)
|
@@ -64,7 +68,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
64
68
|
### Added
|
65
69
|
- initial release
|
66
70
|
|
67
|
-
[unreleased]: https://github.com/sensu-plugins/sensu-plugins-ssl/compare/1.
|
71
|
+
[unreleased]: https://github.com/sensu-plugins/sensu-plugins-ssl/compare/1.3.0...HEAD
|
72
|
+
[1.2.0]: https://github.com/sensu-plugins/sensu-plugins-ssl/compare/1.2.0...1.3.0
|
68
73
|
[1.2.0]: https://github.com/sensu-plugins/sensu-plugins-ssl/compare/1.1.0...1.2.0
|
69
74
|
[1.1.0]: https://github.com/sensu-plugins/sensu-plugins-ssl/compare/1.0.0...1.1.0
|
70
75
|
[1.0.0]: https://github.com/sensu-plugins/sensu-plugins-ssl/compare/0.0.6...1.0.0
|
@@ -22,6 +22,7 @@
|
|
22
22
|
#
|
23
23
|
|
24
24
|
require 'date'
|
25
|
+
require 'shellwords'
|
25
26
|
require 'sensu-plugin/check/cli'
|
26
27
|
|
27
28
|
class CheckJavaKeystoreCert < Sensu::Plugin::Check::CLI
|
@@ -53,9 +54,9 @@ class CheckJavaKeystoreCert < Sensu::Plugin::Check::CLI
|
|
53
54
|
required: true
|
54
55
|
|
55
56
|
def certificate_expiration_date
|
56
|
-
result = `keytool -keystore #{config[:path]} \
|
57
|
-
-export -alias #{config[:alias]} \
|
58
|
-
-storepass #{config[:password]} 2>&1 | \
|
57
|
+
result = `keytool -keystore #{Shellwords.escape(config[:path])} \
|
58
|
+
-export -alias #{Shellwords.escape(config[:alias])} \
|
59
|
+
-storepass #{Shellwords.escape(config[:password])} 2>&1 | \
|
59
60
|
openssl x509 -enddate -inform der -noout 2>&1`
|
60
61
|
|
61
62
|
# rubocop:disable Style/SpecialGlobalVars
|