rake_easy_rsa 0.9.0 → 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/CODE_OF_CONDUCT.md +1 -1
- data/Gemfile.lock +47 -33
- data/lib/rake_easy_rsa/task_sets/pki.rb +2 -0
- 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 +9 -9
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/CODE_OF_CONDUCT.md
CHANGED
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
|
|
55
55
|
## Enforcement
|
56
56
|
|
57
57
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at
|
58
|
+
reported by contacting the project team at maintainers@infrablocks.io. All
|
59
59
|
complaints will be reviewed and investigated and will result in a response that
|
60
60
|
is deemed necessary and appropriate to the circumstances. The project team is
|
61
61
|
obligated to maintain confidentiality with regard to the reporter of an incident.
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rake_easy_rsa (0.
|
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,64 +10,78 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
activesupport (6.1.
|
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)
|
17
17
|
tzinfo (~> 2.0)
|
18
18
|
zeitwerk (~> 2.3)
|
19
|
-
addressable (2.
|
19
|
+
addressable (2.8.0)
|
20
20
|
public_suffix (>= 2.0.2, < 5.0)
|
21
21
|
colored2 (3.1.2)
|
22
|
-
concurrent-ruby (1.1.
|
23
|
-
diff-lcs (1.
|
24
|
-
docile (1.
|
25
|
-
excon (0.
|
26
|
-
fakefs (
|
27
|
-
faraday (1.
|
22
|
+
concurrent-ruby (1.1.9)
|
23
|
+
diff-lcs (1.5.0)
|
24
|
+
docile (1.4.0)
|
25
|
+
excon (0.89.0)
|
26
|
+
fakefs (1.4.0)
|
27
|
+
faraday (1.8.0)
|
28
|
+
faraday-em_http (~> 1.0)
|
29
|
+
faraday-em_synchrony (~> 1.0)
|
30
|
+
faraday-excon (~> 1.1)
|
31
|
+
faraday-httpclient (~> 1.0.1)
|
28
32
|
faraday-net_http (~> 1.0)
|
33
|
+
faraday-net_http_persistent (~> 1.1)
|
34
|
+
faraday-patron (~> 1.0)
|
35
|
+
faraday-rack (~> 1.0)
|
29
36
|
multipart-post (>= 1.2, < 3)
|
30
|
-
ruby2_keywords
|
31
|
-
faraday-
|
32
|
-
|
37
|
+
ruby2_keywords (>= 0.0.4)
|
38
|
+
faraday-em_http (1.0.0)
|
39
|
+
faraday-em_synchrony (1.0.0)
|
40
|
+
faraday-excon (1.1.0)
|
41
|
+
faraday-httpclient (1.0.1)
|
42
|
+
faraday-net_http (1.0.1)
|
43
|
+
faraday-net_http_persistent (1.2.0)
|
44
|
+
faraday-patron (1.0.0)
|
45
|
+
faraday-rack (1.0.0)
|
46
|
+
gem-release (2.2.2)
|
33
47
|
hamster (3.0.0)
|
34
48
|
concurrent-ruby (~> 1.0)
|
35
|
-
i18n (1.8.
|
49
|
+
i18n (1.8.11)
|
36
50
|
concurrent-ruby (~> 1.0)
|
37
|
-
lino (
|
51
|
+
lino (3.0.0)
|
38
52
|
hamster (~> 3.0)
|
39
53
|
open4 (~> 1.3)
|
40
54
|
minitar (0.9)
|
41
|
-
minitest (5.
|
55
|
+
minitest (5.15.0)
|
42
56
|
multipart-post (2.1.1)
|
43
|
-
octokit (4.
|
57
|
+
octokit (4.21.0)
|
44
58
|
faraday (>= 0.9)
|
45
59
|
sawyer (~> 0.8.0, >= 0.5.3)
|
46
60
|
open4 (1.3.4)
|
47
61
|
public_suffix (4.0.6)
|
48
|
-
rake (13.0.
|
62
|
+
rake (13.0.6)
|
49
63
|
rake_circle_ci (0.9.0)
|
50
64
|
colored2 (~> 3.1)
|
51
65
|
excon (~> 0.72)
|
52
66
|
rake_factory (~> 0.23)
|
53
67
|
sshkey (~> 2.0)
|
54
|
-
rake_dependencies (2.
|
68
|
+
rake_dependencies (2.11.0)
|
55
69
|
hamster (~> 3.0)
|
56
70
|
minitar (~> 0.9)
|
57
71
|
rake_factory (~> 0.23)
|
58
72
|
rubyzip (>= 1.3)
|
59
|
-
rake_factory (0.
|
73
|
+
rake_factory (0.29.0)
|
60
74
|
activesupport (>= 4)
|
61
75
|
rake (~> 13.0)
|
62
|
-
rake_github (0.
|
76
|
+
rake_github (0.7.0)
|
63
77
|
colored2 (~> 3.1)
|
64
78
|
octokit (~> 4.16)
|
65
79
|
rake_factory (~> 0.23)
|
66
80
|
sshkey (~> 2.0)
|
67
|
-
rake_gpg (0.
|
81
|
+
rake_gpg (0.16.0)
|
68
82
|
rake_factory (>= 0.23, < 1)
|
69
83
|
ruby_gpg2 (>= 0.6, < 1)
|
70
|
-
rake_ssh (0.
|
84
|
+
rake_ssh (0.6.0)
|
71
85
|
colored2 (~> 3.1)
|
72
86
|
rake_factory (~> 0.23)
|
73
87
|
sshkey (~> 2.0)
|
@@ -80,30 +94,30 @@ GEM
|
|
80
94
|
rspec-expectations (3.10.1)
|
81
95
|
diff-lcs (>= 1.2.0, < 2.0)
|
82
96
|
rspec-support (~> 3.10.0)
|
83
|
-
rspec-mocks (3.10.
|
97
|
+
rspec-mocks (3.10.2)
|
84
98
|
diff-lcs (>= 1.2.0, < 2.0)
|
85
99
|
rspec-support (~> 3.10.0)
|
86
|
-
rspec-support (3.10.
|
87
|
-
ruby2_keywords (0.0.
|
88
|
-
ruby_easy_rsa (0.
|
100
|
+
rspec-support (3.10.3)
|
101
|
+
ruby2_keywords (0.0.5)
|
102
|
+
ruby_easy_rsa (0.9.0)
|
89
103
|
lino (>= 1.5)
|
90
|
-
ruby_gpg2 (0.
|
104
|
+
ruby_gpg2 (0.8.0)
|
91
105
|
lino (>= 1.5)
|
92
|
-
rubyzip (2.3.
|
106
|
+
rubyzip (2.3.2)
|
93
107
|
sawyer (0.8.2)
|
94
108
|
addressable (>= 2.3.5)
|
95
109
|
faraday (> 0.8, < 2.0)
|
96
110
|
semantic (1.6.1)
|
97
|
-
simplecov (0.
|
111
|
+
simplecov (0.21.2)
|
98
112
|
docile (~> 1.1)
|
99
113
|
simplecov-html (~> 0.11)
|
100
114
|
simplecov_json_formatter (~> 0.1)
|
101
115
|
simplecov-html (0.12.3)
|
102
|
-
simplecov_json_formatter (0.1.
|
116
|
+
simplecov_json_formatter (0.1.3)
|
103
117
|
sshkey (2.0.0)
|
104
118
|
tzinfo (2.0.4)
|
105
119
|
concurrent-ruby (~> 1.0)
|
106
|
-
zeitwerk (2.
|
120
|
+
zeitwerk (2.5.1)
|
107
121
|
|
108
122
|
PLATFORMS
|
109
123
|
ruby
|
@@ -111,7 +125,7 @@ PLATFORMS
|
|
111
125
|
DEPENDENCIES
|
112
126
|
activesupport (>= 4)
|
113
127
|
bundler (~> 2.1)
|
114
|
-
fakefs (~>
|
128
|
+
fakefs (~> 1.4)
|
115
129
|
gem-release (~> 2.0)
|
116
130
|
rake (~> 13.0)
|
117
131
|
rake_circle_ci (~> 0.9)
|
@@ -123,4 +137,4 @@ DEPENDENCIES
|
|
123
137
|
simplecov (~> 0.16)
|
124
138
|
|
125
139
|
BUNDLED WITH
|
126
|
-
2.
|
140
|
+
2.3.1
|
@@ -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(
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake_easy_rsa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0.pre.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- InfraBlocks Maintainers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake_dependencies
|
@@ -210,14 +210,14 @@ dependencies:
|
|
210
210
|
requirements:
|
211
211
|
- - "~>"
|
212
212
|
- !ruby/object:Gem::Version
|
213
|
-
version: '
|
213
|
+
version: '1.4'
|
214
214
|
type: :development
|
215
215
|
prerelease: false
|
216
216
|
version_requirements: !ruby/object:Gem::Requirement
|
217
217
|
requirements:
|
218
218
|
- - "~>"
|
219
219
|
- !ruby/object:Gem::Version
|
220
|
-
version: '
|
220
|
+
version: '1.4'
|
221
221
|
- !ruby/object:Gem::Dependency
|
222
222
|
name: simplecov
|
223
223
|
requirement: !ruby/object:Gem::Requirement
|
@@ -234,7 +234,7 @@ dependencies:
|
|
234
234
|
version: '0.16'
|
235
235
|
description: Rake tasks for common PKI management tasks using EasyRSA.
|
236
236
|
email:
|
237
|
-
-
|
237
|
+
- maintainers@infrablocks.io
|
238
238
|
executables: []
|
239
239
|
extensions: []
|
240
240
|
extra_rdoc_files: []
|
@@ -273,7 +273,7 @@ files:
|
|
273
273
|
- lib/rake_easy_rsa/tasks/server.rb
|
274
274
|
- lib/rake_easy_rsa/tasks/server/create.rb
|
275
275
|
- lib/rake_easy_rsa/version.rb
|
276
|
-
homepage: https://github.com/
|
276
|
+
homepage: https://github.com/infrablocks/rake_easy_rsa
|
277
277
|
licenses:
|
278
278
|
- MIT
|
279
279
|
metadata: {}
|
@@ -288,9 +288,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
288
288
|
version: '2.6'
|
289
289
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
290
290
|
requirements:
|
291
|
-
- - "
|
291
|
+
- - ">"
|
292
292
|
- !ruby/object:Gem::Version
|
293
|
-
version:
|
293
|
+
version: 1.3.1
|
294
294
|
requirements: []
|
295
295
|
rubygems_version: 3.0.1
|
296
296
|
signing_key:
|