|
@@ -4,10 +4,11 @@ import os
|
4
|
4
|
import os.path
|
5
|
5
|
import re
|
6
|
6
|
import shutil
|
|
7
|
+from enum import Enum
|
7
|
8
|
from subprocess import call
|
8
|
9
|
|
9
|
10
|
|
10
|
|
-class VpnGenError:
|
|
11
|
+class VpnGenError(Enum):
|
11
|
12
|
Success = 0,
|
12
|
13
|
VpnAlreadyExists = 1,
|
13
|
14
|
VpnDoesNotExists = 2,
|
|
@@ -164,7 +165,7 @@ class VpnGen:
|
164
|
165
|
|
165
|
166
|
call([".%sclean-all" % os.sep])
|
166
|
167
|
call([pkitool, "--initca"])
|
167
|
|
- call([pkitool, "server"])
|
|
168
|
+ call([pkitool, "server", "-batch"])
|
168
|
169
|
call([".%sbuild-dh" % os.sep])
|
169
|
170
|
call(["openssl", "ca", "-gencrl",
|
170
|
171
|
"-keyfile", "keys%sca.key" % os.sep,
|