ovpn-key 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/ovpn-key +6 -6
- data/defaults/meta/serial +1 -1
- data/defaults/ovpn-key.yml +1 -1
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b44e2fdcdb2fc4a47b18a47bfb5ea09f349555a2547614b595c944581178e970
|
4
|
+
data.tar.gz: 97877899e12ab51f09a1e94c29995feb9e53156d42182349dc8cbe8e86143a86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47a2f7e26dd576ec913750834d45e3305466ae186489e99acf4e252acb0dcf81c16d0e0510505cef36c9dbd10bd30ee3fc759a6d4c19557cbad24f2891c5dfd9
|
7
|
+
data.tar.gz: 971a6d5befb69c5e6098969e42df5f2cd1c0e14173c2bab1ded94e40231c091243177dd8a65704cebcd5a7dfafde067c82758e39047517237222e8ba3e3f0a89
|
data/bin/ovpn-key
CHANGED
@@ -23,9 +23,9 @@ OptionParser.new do |opts|
|
|
23
23
|
# it's safe to overwrite this file
|
24
24
|
options[:generate_dh] = v
|
25
25
|
end
|
26
|
-
opts.on("--static
|
27
|
-
options[:generate_static] = v
|
28
|
-
check_crt(
|
26
|
+
opts.on("--static", "Generate OpenVPN static key (ta.key)") do |v|
|
27
|
+
options[:generate_static] = v
|
28
|
+
check_crt("ta")
|
29
29
|
end
|
30
30
|
opts.on("--server [name]", "Generate a server key (defaults to 'server')") do |v|
|
31
31
|
options[:generate_server] = v ? v : "server"
|
@@ -89,8 +89,8 @@ end
|
|
89
89
|
ZIP_DIR = settings['zip_dir'] || '~'
|
90
90
|
OPENVPN = settings['openvpn'] || 'openvpn'
|
91
91
|
OPENSSL = settings['openssl'] || 'openssl'
|
92
|
-
KEY_SIZE = settings['key_size'] || 2048
|
93
92
|
ENCRYPT = settings['encrypt'] || 'aes128'
|
93
|
+
KEY_SIZE = settings['key_size'] || 2048
|
94
94
|
CA_DAYS = settings['ca_days'] || 3650
|
95
95
|
CN_CA = settings['ca_name'] || 'Certification Authority'
|
96
96
|
REQ = settings['details']
|
@@ -104,7 +104,7 @@ if options[:generate_dh]
|
|
104
104
|
exe "#{OPENSSL} dhparam -out dh.pem #{KEY_SIZE}"
|
105
105
|
end
|
106
106
|
if options[:generate_static]
|
107
|
-
exe "#{OPENVPN} --genkey --secret
|
107
|
+
exe "#{OPENVPN} --genkey --secret ta.key"
|
108
108
|
end
|
109
109
|
if options[:generate_server]
|
110
110
|
gen_and_sign('server', options[:generate_server], options[:no_password])
|
@@ -136,7 +136,7 @@ if options[:generate_zip]
|
|
136
136
|
[ 'ca.crt', "#{options[:generate_zip]}.crt", "#{options[:generate_zip]}.key"].each {|i|
|
137
137
|
zip.add(i, i)
|
138
138
|
}
|
139
|
-
|
139
|
+
zip.add('ta.key', 'ta.key') if File.exist? 'ta.key'
|
140
140
|
end
|
141
141
|
end
|
142
142
|
if options[:revoke]
|
data/defaults/meta/serial
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
00
|
data/defaults/ovpn-key.yml
CHANGED
data/lib/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
::Version = '0.7.
|
1
|
+
::Version = '0.7.5'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ovpn-key
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vasily Korytov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|