|
|
|
@ -23,7 +23,7 @@ from calculate.api.client.function import get_ip_mac_type
|
|
|
|
|
from calculate.api.datavars import DataVarsApi
|
|
|
|
|
|
|
|
|
|
from calculate.lib.utils import ip as ip_mod
|
|
|
|
|
import os, hashlib, time
|
|
|
|
|
import os, hashlib, time, OpenSSL
|
|
|
|
|
from os import path
|
|
|
|
|
|
|
|
|
|
def init(cert, key, cert_path, data_path, certbase, args, port, user_name):
|
|
|
|
@ -71,7 +71,7 @@ def check_user_path(user_name):
|
|
|
|
|
if not path.isdir(home_dir):
|
|
|
|
|
print 'Not fount user %s' %user_name
|
|
|
|
|
return None
|
|
|
|
|
calc_dir = '/home/' + user_name + '/.calculate'
|
|
|
|
|
calc_dir = home_dir + '/.calculate'
|
|
|
|
|
if not path.isdir(calc_dir):
|
|
|
|
|
os.makedirs(calc_dir)
|
|
|
|
|
client_cert_path = calc_dir + '/client_cert/'
|
|
|
|
|