Each server has its own creds!
This commit is contained in:
Aidaho12
2018-06-24 15:31:28 +06:00
parent 96ed5b6fda
commit 540e9acab1
16 changed files with 446 additions and 90 deletions

View File

@@ -27,7 +27,9 @@ if form.getvalue('getcert') is not None and serv is not None:
print('<div class="alert alert-danger" style="margin:0">Can not connect to the server</div>')
if form.getvalue('ssh_cert'):
ssh_keys = funct.get_config_var('ssh', 'ssh_keys')
fullpath = funct.get_config_var('main', 'fullpath')
name = form.getvalue('name')
ssh_keys = fullpath+'/keys/'+name+'.pem'
try:
with open(ssh_keys, "w") as conf: