|
|
@ -139,7 +139,7 @@ def client_post_request(cert_path, args):
|
|
|
|
if os.path.exists(cert_path + 'req_id'):
|
|
|
|
if os.path.exists(cert_path + 'req_id'):
|
|
|
|
print(_("You already sent a certificate signature request."))
|
|
|
|
print(_("You already sent a certificate signature request."))
|
|
|
|
_print(_("Request ID = %s") % readFile(cert_path + 'req_id'))
|
|
|
|
_print(_("Request ID = %s") % readFile(cert_path + 'req_id'))
|
|
|
|
ans = raw_input(_("Send a new request? y/[n]: "))
|
|
|
|
ans = input(_("Send a new request? y/[n]: "))
|
|
|
|
if not ans.lower() in ['y', 'yes']:
|
|
|
|
if not ans.lower() in ['y', 'yes']:
|
|
|
|
return 0
|
|
|
|
return 0
|
|
|
|
clVars = DataVarsCore()
|
|
|
|
clVars = DataVarsCore()
|
|
|
@ -167,7 +167,7 @@ def client_post_request(cert_path, args):
|
|
|
|
csr_file = os.path.join(cert_path, server_host_name + '.csr')
|
|
|
|
csr_file = os.path.join(cert_path, server_host_name + '.csr')
|
|
|
|
if os.path.exists(key) and os.path.exists(csr_file):
|
|
|
|
if os.path.exists(key) and os.path.exists(csr_file):
|
|
|
|
print(_("the private key and request now exist"))
|
|
|
|
print(_("the private key and request now exist"))
|
|
|
|
ask = raw_input(_("Create a new private key and request? y/[n]: "))
|
|
|
|
ask = input(_("Create a new private key and request? y/[n]: "))
|
|
|
|
if ask.lower() in ['y', 'yes']:
|
|
|
|
if ask.lower() in ['y', 'yes']:
|
|
|
|
passwd = get_password()
|
|
|
|
passwd = get_password()
|
|
|
|
new_key_req(key, cert_path, server_host_name,
|
|
|
|
new_key_req(key, cert_path, server_host_name,
|
|
|
|