acmesmith 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/acmesmith/client.rb +2 -2
- data/lib/acmesmith/command.rb +3 -3
- data/lib/acmesmith/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39060c7505c4a73bfccf496d1015c69573e247b7
|
4
|
+
data.tar.gz: f021fc666dee39ce983143b8b42c6d89fe10e336
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07ee7ce1383349bd7fbc93d78fe97bca3d9407df833c3d7f299d5fd17ef1307118f5e50f8c28523a131cc9756cfb858d9aa465a43850d6f86a723b8f06515fdc
|
7
|
+
data.tar.gz: be76cdfe37a4988c9dfdb1db3d3fb49bc16ba7fe719ae7ad588f22a1f636f74b19f9f5383464d52128055bcc83e9de7102528ba04b2df98b887b2deb157d6176
|
data/lib/acmesmith/client.rb
CHANGED
@@ -178,8 +178,8 @@ module Acmesmith
|
|
178
178
|
end
|
179
179
|
end
|
180
180
|
|
181
|
-
def autorenew(days)
|
182
|
-
storage.list_certificates.each do |cn|
|
181
|
+
def autorenew(days: 7, common_names: nil)
|
182
|
+
(common_names || storage.list_certificates).each do |cn|
|
183
183
|
puts "=> #{cn}"
|
184
184
|
cert = storage.get_certificate(cn)
|
185
185
|
not_after = cert.certificate.not_after.utc
|
data/lib/acmesmith/command.rb
CHANGED
@@ -93,10 +93,10 @@ module Acmesmith
|
|
93
93
|
client.save_pkcs12(common_name, version: options[:version], mode: options[:mode], output: options[:output], passphrase: passphrase)
|
94
94
|
end
|
95
95
|
|
96
|
-
desc "autorenew", "request renewal of certificates which expires soon"
|
96
|
+
desc "autorenew [COMMON_NAMES]", "request renewal of certificates which expires soon"
|
97
97
|
method_option :days, type: :numeric, aliases: %w(-d), default: 7, desc: 'specify threshold in days to select certificates to renew'
|
98
|
-
def autorenew
|
99
|
-
client.autorenew(options[:days])
|
98
|
+
def autorenew(*common_names)
|
99
|
+
client.autorenew(days: options[:days], common_names: common_names.empty? ? nil : common_names)
|
100
100
|
end
|
101
101
|
|
102
102
|
desc "add-san COMMON_NAME [ADDITIONAL_SANS]", "request renewal of existing certificate with additional SANs"
|
data/lib/acmesmith/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acmesmith
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sorah (Shota Fukumori)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: acme-client
|