rake_easy_rsa 0.2.0.pre.8 → 0.2.0.pre.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/rake_easy_rsa/mixins/gitkeep_parameters.rb +12 -0
- data/lib/rake_easy_rsa/mixins/global_parameters.rb +1 -1
- data/lib/rake_easy_rsa/tasks/ca/create.rb +18 -0
- data/lib/rake_easy_rsa/tasks/initialise.rb +10 -0
- data/lib/rake_easy_rsa/version.rb +1 -1
- data/rake_easy_rsa.gemspec +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57d21741dbc6e7ee89ffe8dba3b97767b0a92ed7a6f80238a7bfa0324f7331f0
|
4
|
+
data.tar.gz: 9178fcb4ed75c95ec2ec2b142e1529ccb81923acfc991ef1e2a5659c207e3540
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e739d3ccf0d0806eee3f67101d89442e1c727ec05b489db5cfe23a53c407d3558e6aff9b9aae37cb575b1cc9c958ee66ab32e93ba33152cf5184a70d27a19b0
|
7
|
+
data.tar.gz: 74dabc82285806dfae393c5426ebdb1982ece3051170152dd1622fb42afb9ec2d83887321907c4b35a1161721d147cafecf31480499c8c4b24a9a401288d8ccf
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rake_easy_rsa (0.2.0.pre.
|
4
|
+
rake_easy_rsa (0.2.0.pre.9)
|
5
5
|
rake_dependencies (~> 2, < 3)
|
6
6
|
rake_factory (>= 0.23, < 1)
|
7
|
-
ruby_easy_rsa (= 0.2.0.pre.
|
7
|
+
ruby_easy_rsa (= 0.2.0.pre.11)
|
8
8
|
semantic (~> 1.6.1)
|
9
9
|
|
10
10
|
GEM
|
@@ -78,7 +78,7 @@ GEM
|
|
78
78
|
diff-lcs (>= 1.2.0, < 2.0)
|
79
79
|
rspec-support (~> 3.9.0)
|
80
80
|
rspec-support (3.9.2)
|
81
|
-
ruby_easy_rsa (0.2.0.pre.
|
81
|
+
ruby_easy_rsa (0.2.0.pre.11)
|
82
82
|
lino (= 1.2.0.pre.2)
|
83
83
|
rubyzip (2.3.0)
|
84
84
|
sawyer (0.8.2)
|
@@ -5,6 +5,7 @@ require_relative '../../mixins/global_parameters'
|
|
5
5
|
require_relative '../../mixins/ssl_parameters'
|
6
6
|
require_relative '../../mixins/algorithm_parameters'
|
7
7
|
require_relative '../../mixins/encrypt_key_parameters'
|
8
|
+
require_relative '../../mixins/gitkeep_parameters'
|
8
9
|
|
9
10
|
module RakeEasyRSA
|
10
11
|
module Tasks
|
@@ -14,6 +15,7 @@ module RakeEasyRSA
|
|
14
15
|
include Mixins::SSLParameters
|
15
16
|
include Mixins::AlgorithmParameters
|
16
17
|
include Mixins::EncryptKeyParameters
|
18
|
+
include Mixins::GitkeepParameters
|
17
19
|
|
18
20
|
default_name :create
|
19
21
|
default_description "Create the CA certificate for the PKI"
|
@@ -21,6 +23,22 @@ module RakeEasyRSA
|
|
21
23
|
action do |t|
|
22
24
|
puts "Creating CA certificate... "
|
23
25
|
RubyEasyRSA.build_ca(t.parameter_values)
|
26
|
+
if t.include_gitkeep_files
|
27
|
+
[
|
28
|
+
'certs_by_serial/.gitkeep',
|
29
|
+
'issued/.gitkeep',
|
30
|
+
'renewed/certs_by_serial/.gitkeep',
|
31
|
+
'renewed/private_by_serial/.gitkeep',
|
32
|
+
'renewed/reqs_by_serial/.gitkeep',
|
33
|
+
'revoked/certs_by_serial/.gitkeep',
|
34
|
+
'revoked/private_by_serial/.gitkeep',
|
35
|
+
'revoked/reqs_by_serial/.gitkeep'
|
36
|
+
].each do |gitkeep_file|
|
37
|
+
File.open("#{t.pki_directory}/#{gitkeep_file}", 'w') do |f|
|
38
|
+
f.write('')
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
24
42
|
puts "Done."
|
25
43
|
end
|
26
44
|
end
|
@@ -3,12 +3,14 @@ require 'ruby_easy_rsa'
|
|
3
3
|
|
4
4
|
require_relative '../mixins/global_parameters'
|
5
5
|
require_relative '../mixins/ssl_parameters'
|
6
|
+
require_relative '../mixins/gitkeep_parameters'
|
6
7
|
|
7
8
|
module RakeEasyRSA
|
8
9
|
module Tasks
|
9
10
|
class Initialise < RakeFactory::Task
|
10
11
|
include Mixins::GlobalParameters
|
11
12
|
include Mixins::SSLParameters
|
13
|
+
include Mixins::GitkeepParameters
|
12
14
|
|
13
15
|
default_name :initialise
|
14
16
|
default_description "Initialise the PKI working directory"
|
@@ -16,6 +18,14 @@ module RakeEasyRSA
|
|
16
18
|
action do |t|
|
17
19
|
puts "Initialising PKI working directory... "
|
18
20
|
RubyEasyRSA.init_pki(t.parameter_values)
|
21
|
+
if t.include_gitkeep_files
|
22
|
+
File.open("#{t.pki_directory}/private/.gitkeep", 'w') do |f|
|
23
|
+
f.write('')
|
24
|
+
end
|
25
|
+
File.open("#{t.pki_directory}/reqs/.gitkeep", 'w') do |f|
|
26
|
+
f.write('')
|
27
|
+
end
|
28
|
+
end
|
19
29
|
puts "Done."
|
20
30
|
end
|
21
31
|
end
|
data/rake_easy_rsa.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
|
26
26
|
spec.add_dependency 'rake_dependencies', '~> 2', '< 3'
|
27
27
|
spec.add_dependency 'rake_factory', '>= 0.23', '< 1'
|
28
|
-
spec.add_dependency 'ruby_easy_rsa', '0.2.0.pre.
|
28
|
+
spec.add_dependency 'ruby_easy_rsa', '0.2.0.pre.11'
|
29
29
|
spec.add_dependency 'semantic', '~> 1.6.1'
|
30
30
|
|
31
31
|
spec.add_development_dependency 'bundler', '~> 2.1'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake_easy_rsa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0.pre.
|
4
|
+
version: 0.2.0.pre.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toby Clemson
|
@@ -56,14 +56,14 @@ dependencies:
|
|
56
56
|
requirements:
|
57
57
|
- - '='
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: 0.2.0.pre.
|
59
|
+
version: 0.2.0.pre.11
|
60
60
|
type: :runtime
|
61
61
|
prerelease: false
|
62
62
|
version_requirements: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
64
|
- - '='
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: 0.2.0.pre.
|
66
|
+
version: 0.2.0.pre.11
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: semantic
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -256,6 +256,7 @@ files:
|
|
256
256
|
- lib/rake_easy_rsa.rb
|
257
257
|
- lib/rake_easy_rsa/mixins/algorithm_parameters.rb
|
258
258
|
- lib/rake_easy_rsa/mixins/encrypt_key_parameters.rb
|
259
|
+
- lib/rake_easy_rsa/mixins/gitkeep_parameters.rb
|
259
260
|
- lib/rake_easy_rsa/mixins/global_parameters.rb
|
260
261
|
- lib/rake_easy_rsa/mixins/ssl_parameters.rb
|
261
262
|
- lib/rake_easy_rsa/task_sets.rb
|