Update server.py
This commit is contained in:
parent
6fb311ad89
commit
c9a28d9022
1 changed files with 1 additions and 0 deletions
|
@ -36,6 +36,7 @@ def loadcert_backend():
|
|||
privkey = request.files['privkey']
|
||||
if cert.filename == '' or privkey.filename == '':
|
||||
return "Please upload a certificate and private key."
|
||||
print(cert.read())
|
||||
if allowed_file(cert.filename) and allowed_file(privkey.filename):
|
||||
for i in os.listdir(homefolder + "/certs/"):
|
||||
thisname = "-".join(i.split("-")[:-1])
|
||||
|
|
Loading…
Add table
Reference in a new issue