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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 315b12aaa3f38b10e0c6d190f56eb6715efeb8b702c6427eb10ee51c6fd56246
4
- data.tar.gz: 14586944d2f1b9b388198e6e05c8bc2347fe706c7aa065539e61bbc0588c3bd5
3
+ metadata.gz: b44e2fdcdb2fc4a47b18a47bfb5ea09f349555a2547614b595c944581178e970
4
+ data.tar.gz: 97877899e12ab51f09a1e94c29995feb9e53156d42182349dc8cbe8e86143a86
5
5
  SHA512:
6
- metadata.gz: bde20521e7bcce945590fb9d04cba55e71b64ffab36c950341dd94f0b36cbd366d5e8437fa7fb2716ea4f1724331a829be36336c558d7b5dc5d076d9463278fb
7
- data.tar.gz: 15197a504f944248d85e865e0262c1c4283c2c56a9d683f22a9411e2185570c4f05b260278b43323d6b6676851619ec619040be21b7777d079b6801923959c3d
6
+ metadata.gz: 47a2f7e26dd576ec913750834d45e3305466ae186489e99acf4e252acb0dcf81c16d0e0510505cef36c9dbd10bd30ee3fc759a6d4c19557cbad24f2891c5dfd9
7
+ data.tar.gz: 971a6d5befb69c5e6098969e42df5f2cd1c0e14173c2bab1ded94e40231c091243177dd8a65704cebcd5a7dfafde067c82758e39047517237222e8ba3e3f0a89
@@ -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 [name]", "Generate OpenVPN static key (defaults to 'ta')") do |v|
27
- options[:generate_static] = v ? v : "ta"
28
- check_crt(options[:generate_static])
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 '#{options[:generate_static]}.key'"
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
- # TODO: include TLS key if specified in config with tls-auth/tls-crypt
139
+ zip.add('ta.key', 'ta.key') if File.exist? 'ta.key'
140
140
  end
141
141
  end
142
142
  if options[:revoke]
@@ -1 +1 @@
1
- 01
1
+ 00
@@ -1,8 +1,8 @@
1
1
  zip_dir: '~'
2
2
  openvpn: openvpn
3
3
  openssl: openssl
4
- key_size: 2048
5
4
  encrypt: aes128
5
+ key_size: 2048
6
6
  ca_days: 3650
7
7
  ca_name: Certification Authority
8
8
  details: /C=US/ST=CA/L=San Francisco/O=Dva Debila/OU=OpenVPN
@@ -1 +1 @@
1
- ::Version = '0.7.4'
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
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-18 00:00:00.000000000 Z
11
+ date: 2018-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip