修复bug
This commit is contained in:
parent
c4219c2149
commit
ce7a602d63
6
app.py
6
app.py
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user