Fix error because easyrsa prints to stderr
diff --git a/xos/services/vpn/models.py b/xos/services/vpn/models.py
index 06aac1c..a782080 100644
--- a/xos/services/vpn/models.py
+++ b/xos/services/vpn/models.py
@@ -20,12 +20,11 @@
         full_command = (
             VPNService.EASYRSA_COMMAND + " --pki-dir=" +
             pki_dir + " " + command)
-        (stdout, stderr) = (
-            Popen(
-                full_command, shell=True, stdout=PIPE, stderr=PIPE
-            ).communicate()
+        proc = Popen(
+            full_command, shell=True, stdout=PIPE, stderr=PIPE
         )
-        if (stderr):
+        (stdout, stderr) = proc.communicate()
+        if (proc.returncode != 0):
             raise XOSConfigurationError(
                 full_command + " failed with standard out:" + str(stdout) +
                 " and stderr: " + str(stderr))