rake_easy_rsa 0.10.0.pre.3 → 0.10.0.pre.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +16 -10
- data/lib/rake_easy_rsa/tasks/certificate/renew.rb +8 -3
- data/lib/rake_easy_rsa/tasks/certificate/revoke.rb +10 -4
- data/lib/rake_easy_rsa/tasks/client/create.rb +8 -3
- data/lib/rake_easy_rsa/tasks/server/create.rb +6 -1
- data/lib/rake_easy_rsa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e303c8cd60453f5ac6934b98e0234f7b897d519fa0b6204ffa22b2c56f18082
|
4
|
+
data.tar.gz: f3e1309559c38ab6dbc2445ed032a858eaaa478549e45c3ede6cb41f37613fb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2648a3c76f931abe20c59752d1ba9b6a0f5debcf3a1ca23a237d8588de27d38505cfbfd897d431c385f86ab3ba41c5e4bde74be7299a4e7ec235996f0f6a03e6
|
7
|
+
data.tar.gz: 46e2b2fd07202e2e37f79933c460bba50d7ee1318731ce6b6e1f9bb91be305a0ea4a920184fed5e8b724bbb4fb32a99b94871cf5143fe238f481d5420e32f854
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rake_easy_rsa (0.10.0.pre.
|
4
|
+
rake_easy_rsa (0.10.0.pre.4)
|
5
5
|
rake_dependencies (~> 2, < 3)
|
6
6
|
rake_factory (>= 0.23, < 1)
|
7
7
|
ruby_easy_rsa (>= 0.7)
|
@@ -10,7 +10,7 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
activesupport (6.1.4.
|
13
|
+
activesupport (6.1.4.4)
|
14
14
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
15
15
|
i18n (>= 1.6, < 2)
|
16
16
|
minitest (>= 5.1)
|
@@ -20,23 +20,29 @@ GEM
|
|
20
20
|
public_suffix (>= 2.0.2, < 5.0)
|
21
21
|
colored2 (3.1.2)
|
22
22
|
concurrent-ruby (1.1.9)
|
23
|
-
diff-lcs (1.
|
23
|
+
diff-lcs (1.5.0)
|
24
24
|
docile (1.4.0)
|
25
|
-
excon (0.
|
25
|
+
excon (0.89.0)
|
26
26
|
fakefs (1.4.0)
|
27
|
-
faraday (1.
|
27
|
+
faraday (1.8.0)
|
28
28
|
faraday-em_http (~> 1.0)
|
29
29
|
faraday-em_synchrony (~> 1.0)
|
30
30
|
faraday-excon (~> 1.1)
|
31
|
+
faraday-httpclient (~> 1.0.1)
|
31
32
|
faraday-net_http (~> 1.0)
|
32
33
|
faraday-net_http_persistent (~> 1.1)
|
34
|
+
faraday-patron (~> 1.0)
|
35
|
+
faraday-rack (~> 1.0)
|
33
36
|
multipart-post (>= 1.2, < 3)
|
34
37
|
ruby2_keywords (>= 0.0.4)
|
35
38
|
faraday-em_http (1.0.0)
|
36
39
|
faraday-em_synchrony (1.0.0)
|
37
40
|
faraday-excon (1.1.0)
|
41
|
+
faraday-httpclient (1.0.1)
|
38
42
|
faraday-net_http (1.0.1)
|
39
|
-
faraday-net_http_persistent (1.
|
43
|
+
faraday-net_http_persistent (1.2.0)
|
44
|
+
faraday-patron (1.0.0)
|
45
|
+
faraday-rack (1.0.0)
|
40
46
|
gem-release (2.2.2)
|
41
47
|
hamster (3.0.0)
|
42
48
|
concurrent-ruby (~> 1.0)
|
@@ -46,7 +52,7 @@ GEM
|
|
46
52
|
hamster (~> 3.0)
|
47
53
|
open4 (~> 1.3)
|
48
54
|
minitar (0.9)
|
49
|
-
minitest (5.
|
55
|
+
minitest (5.15.0)
|
50
56
|
multipart-post (2.1.1)
|
51
57
|
octokit (4.21.0)
|
52
58
|
faraday (>= 0.9)
|
@@ -91,13 +97,13 @@ GEM
|
|
91
97
|
rspec-mocks (3.10.2)
|
92
98
|
diff-lcs (>= 1.2.0, < 2.0)
|
93
99
|
rspec-support (~> 3.10.0)
|
94
|
-
rspec-support (3.10.
|
95
|
-
ruby2_keywords (0.0.
|
100
|
+
rspec-support (3.10.3)
|
101
|
+
ruby2_keywords (0.0.5)
|
96
102
|
ruby_easy_rsa (0.9.0)
|
97
103
|
lino (>= 1.5)
|
98
104
|
ruby_gpg2 (0.8.0)
|
99
105
|
lino (>= 1.5)
|
100
|
-
rubyzip (2.3.
|
106
|
+
rubyzip (2.3.2)
|
101
107
|
sawyer (0.8.2)
|
102
108
|
addressable (>= 2.3.5)
|
103
109
|
faraday (> 0.8, < 2.0)
|
@@ -15,15 +15,20 @@ module RakeEasyRSA
|
|
15
15
|
include Mixins::EncryptKeyParameters
|
16
16
|
include Mixins::EasyRSAEnsurePrerequisite
|
17
17
|
|
18
|
+
parameter :default_argument_names, default: [:filename_base]
|
19
|
+
|
18
20
|
default_name :renew
|
19
|
-
default_argument_names [:filename_base]
|
20
21
|
default_description "Renew a certificate of the PKI"
|
21
22
|
|
23
|
+
def argument_names
|
24
|
+
@argument_names + default_argument_names
|
25
|
+
end
|
26
|
+
|
22
27
|
action do |t, args|
|
23
28
|
puts "Renewing certificate '#{args.filename_base}'... "
|
24
29
|
RubyEasyRSA.renew(
|
25
|
-
|
26
|
-
|
30
|
+
t.parameter_values.merge(
|
31
|
+
filename_base: args.filename_base))
|
27
32
|
puts "Done."
|
28
33
|
end
|
29
34
|
end
|
@@ -13,19 +13,25 @@ module RakeEasyRSA
|
|
13
13
|
include Mixins::SSLParameters
|
14
14
|
include Mixins::EasyRSAEnsurePrerequisite
|
15
15
|
|
16
|
+
parameter(:default_argument_names,
|
17
|
+
default: [:filename_base, :reason])
|
18
|
+
|
16
19
|
default_name :revoke
|
17
|
-
default_argument_names [:filename_base, :reason]
|
18
20
|
default_description 'Revoke a certificate of the PKI'
|
19
21
|
|
20
22
|
parameter :reason, default: 'unspecified'
|
21
23
|
|
24
|
+
def argument_names
|
25
|
+
@argument_names + default_argument_names
|
26
|
+
end
|
27
|
+
|
22
28
|
action do |t, args|
|
23
29
|
puts "Revoking certificate '#{args.filename_base}'... "
|
24
30
|
reason = args.reason || t.reason
|
25
31
|
RubyEasyRSA.revoke(
|
26
|
-
|
27
|
-
|
28
|
-
|
32
|
+
t.parameter_values.merge(
|
33
|
+
reason: reason,
|
34
|
+
filename_base: args.filename_base))
|
29
35
|
puts 'Done.'
|
30
36
|
end
|
31
37
|
end
|
@@ -17,15 +17,20 @@ module RakeEasyRSA
|
|
17
17
|
include Mixins::EncryptKeyParameters
|
18
18
|
include Mixins::EasyRSAEnsurePrerequisite
|
19
19
|
|
20
|
+
parameter :default_argument_names, default: [:filename_base]
|
21
|
+
|
20
22
|
default_name :create
|
21
|
-
default_argument_names [:filename_base]
|
22
23
|
default_description "Create a client certificate for the PKI"
|
23
24
|
|
25
|
+
def argument_names
|
26
|
+
@argument_names + default_argument_names
|
27
|
+
end
|
28
|
+
|
24
29
|
action do |t, args|
|
25
30
|
puts "Creating client certificate '#{args.filename_base}'... "
|
26
31
|
RubyEasyRSA.build_client_full(
|
27
|
-
|
28
|
-
|
32
|
+
t.parameter_values.merge(
|
33
|
+
filename_base: args.filename_base))
|
29
34
|
puts "Done."
|
30
35
|
end
|
31
36
|
end
|
@@ -17,10 +17,15 @@ module RakeEasyRSA
|
|
17
17
|
include Mixins::EncryptKeyParameters
|
18
18
|
include Mixins::EasyRSAEnsurePrerequisite
|
19
19
|
|
20
|
+
parameter :default_argument_names, default: [:filename_base]
|
21
|
+
|
20
22
|
default_name :create
|
21
|
-
default_argument_names [:filename_base]
|
22
23
|
default_description "Create a server certificate for the PKI"
|
23
24
|
|
25
|
+
def argument_names
|
26
|
+
@argument_names + default_argument_names
|
27
|
+
end
|
28
|
+
|
24
29
|
action do |t, args|
|
25
30
|
puts "Creating server certificate '#{args.filename_base}'... "
|
26
31
|
RubyEasyRSA.build_server_full(
|