Update site.py

This commit is contained in:
Mr Chen 2024-12-09 18:22:39 +08:00
parent 2e3d5fda44
commit 41a76e1ac6
1 changed files with 1 additions and 1 deletions

View File

@ -1763,7 +1763,7 @@ location ^~ {from} {\n\
certInfo = mw.getCertName(certPath)
if not certInfo:
return mw.returnData(False, '证书解析失败!')
vpath = self.sslDir + '/' + certInfo['subject'].strip()
vpath = self.sslDir + '/' + site_name
if not os.path.exists(vpath):
os.system('mkdir -p ' + vpath)
mw.writeFile(vpath + '/privkey.pem', mw.readFile(keyPath))