修复bug
This commit is contained in:
parent
246f3ed82d
commit
e38cf29bb4
2
app.py
2
app.py
@ -930,7 +930,7 @@ def export_certificate_view(cert_id):
|
||||
# 添加证书文件
|
||||
with open(cert['cert_path'], 'r') as f:
|
||||
cert_content = f.read()
|
||||
zf.writestr(f"{cert['common_name']}.crt", cert_content)
|
||||
zf.writestr(f"{cert['common_name']}.pem", cert_content)
|
||||
|
||||
# 添加私钥文件
|
||||
with open(cert['key_path'], 'r') as f:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user