vpnmaker 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.6
1
+ 1.0.7
@@ -188,6 +188,7 @@ module VPNMaker
188
188
 
189
189
  mode('create') {
190
190
  keyword('passwd') {
191
+ description "This is PKCS12 password, default is \"passwd\""
191
192
  argument :optional
192
193
  cast :string
193
194
  arity 1
@@ -1,7 +1,6 @@
1
1
  \# Auto-generated by vpnmaker on #{gen_host} #{Time.now.to_s}
2
2
  \# See http://github.com/pc/vpnmaker
3
3
  mode server
4
-
5
4
  dev tun0
6
5
  local #{host}
7
6
  proto udp
@@ -9,6 +8,8 @@ port #{port}
9
8
  server #{base_ip[:net]} #{base_ip[:mask]}
10
9
  tls-server
11
10
  comp-lzo
11
+ cipher AES-256-CBC
12
+ crl-verify #{root}/keys/crl.pem
12
13
  \
13
14
  \# subnets.each do
14
15
  - subnets.each do |net|
@@ -42,10 +43,6 @@ group #{group}
42
43
  #{key}
43
44
  </key>
44
45
 
45
- <crl-verify>
46
- #{crl}
47
- </crl-verify>
48
-
49
46
  <tls-auth>
50
47
  #{ta}
51
48
  </tls-auth>
@@ -108,10 +108,11 @@ module VPNMaker
108
108
  else
109
109
  pass_spec = '-nodes'
110
110
  end
111
-
112
- `openssl req -batch -days 3650 -new -keyout #{tmppath(user, 'key')} -out #{tmppath(user, 'csr')} -config #{opensslcnf(h)} #{pass_spec}`
111
+ `openssl req -batch -days 3650 -new -keyout #{tmppath(user, 'key')} -out #{tmppath(user, 'csr')} -config #{opensslcnf(h)} -nodes`
113
112
  `openssl ca -batch -days 3650 -out #{tmppath(user, 'crt')} -in #{tmppath(user, 'csr')} -config #{opensslcnf(h)}`
114
- # TODO: this still asks for the export password
113
+ # TODO: this still asks for the export password and we hack
114
+ # around it from bin/vpnmaker. This is actually something that
115
+ # should only be generated dynamically upon user request.
115
116
  `openssl pkcs12 -export -clcerts -in #{tmppath(user, 'crt')} -inkey #{tmppath(user, 'key')} -out #{tmppath(user, 'p12')} #{pass_spec}`
116
117
  @tracker.send(delegate, user, name, email, tmpfile(user, 'key'), tmpfile(user, 'crt'), tmpfile(user, 'p12'), tmpfile('index.txt'), tmpfile('serial'))
117
118
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "vpnmaker"
8
- s.version = "1.0.6"
8
+ s.version = "1.0.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Voip Scout"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vpnmaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -503,7 +503,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
503
503
  version: '0'
504
504
  segments:
505
505
  - 0
506
- hash: -3142756711358992350
506
+ hash: -1487208536478993415
507
507
  required_rubygems_version: !ruby/object:Gem::Requirement
508
508
  none: false
509
509
  requirements: