修复bug

This commit is contained in:
wzj 2025-06-14 10:46:08 +08:00
parent c4219c2149
commit ce7a602d63

6
app.py
View File

@ -204,6 +204,7 @@ def create_certificate(ca_id, common_name, san_dns, san_ip, organization, organi
prompt = no
default_md = sha256
distinguished_name = dn
req_extensions = req_ext
[dn]
CN = {common_name}
@ -212,6 +213,11 @@ def create_certificate(ca_id, common_name, san_dns, san_ip, organization, organi
C = {country}
ST = {state}
L = {locality}
[req_ext]
subjectAltName = @alt_names
[alt_names]
"""
if san_dns or san_ip: