Browse Source

unset some env variable

master
Robin Thoni 8 years ago
parent
commit
3935ac0f9b
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      vpngen.py

+ 5
- 0
vpngen.py View File

@@ -172,6 +172,11 @@ class VpnGen:
172 172
               "-cert", "keys%sca.crt" % os.sep,
173 173
               "-out", "keys%scrl.pem" % os.sep,
174 174
               "-config", "openssl.cnf"])
175
+
176
+        del os.environ["KEY_OU"]
177
+        del os.environ["KEY_CN"]
178
+        del os.environ["KEY_NAME"]
179
+
175 180
         call(["openvpn", "--genkey", "--secret", "keys%sta.key" % os.sep])
176 181
 
177 182
         with open(conf_vpngen_file, "w") as f:

Loading…
Cancel
Save