|
|
|
@ -102,7 +102,7 @@ def check_server_certificate(cert, key, cert_path, args, port, auto = False):
|
|
|
|
|
PIPE = subprocess.PIPE
|
|
|
|
|
p = subprocess.Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE,
|
|
|
|
|
stderr=subprocess.STDOUT, close_fds=True)
|
|
|
|
|
time.sleep (2)
|
|
|
|
|
p.wait()
|
|
|
|
|
|
|
|
|
|
# add certificate in trusted
|
|
|
|
|
fd = open(cert_path+'/ca_root.crt', 'a')
|
|
|
|
@ -686,6 +686,7 @@ def sing_req_by_server(id_client_req, cert_path, data_path, auto = False):
|
|
|
|
|
PIPE = subprocess.PIPE
|
|
|
|
|
p = subprocess.Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE,
|
|
|
|
|
stderr=subprocess.STDOUT, close_fds=True)
|
|
|
|
|
p.wait()
|
|
|
|
|
print _("certificate %s is signed") %cl_cert
|
|
|
|
|
return 0
|
|
|
|
|
|
|
|
|
@ -739,6 +740,7 @@ def sing_req_by_root(args, cert_path, data_path):
|
|
|
|
|
PIPE = subprocess.PIPE
|
|
|
|
|
p = subprocess.Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE,
|
|
|
|
|
stderr=subprocess.STDOUT, close_fds=True)
|
|
|
|
|
p.wait()
|
|
|
|
|
print _("certificate %s is signed") %sign_cert
|
|
|
|
|
return 0
|
|
|
|
|
|
|
|
|
|