make assumption that user wants to autogen a key/cert pair since this is now an extension

pull/12/head
papuSpartan 2022-11-13 06:03:56 -06:00
parent 5d53f3db17
commit a5a1e90fe1
1 changed files with 1 additions and 3 deletions

View File

@ -17,7 +17,7 @@ def setup_tls():
else:
print("Running with TLS")
if cmd_opts.self_sign:
if not cmd_opts.self_sign:
# if no cert or key then provide a default for the user in order to provide aio functionality
if not cmd_opts.tls_certfile and not cmd_opts.tls_keyfile:
import certipie
@ -31,9 +31,7 @@ def setup_tls():
private_key=privkey,
# it seems like requests prioritizes CN despite CN being deprecated by SAN's?
# localhost is already picked as the cert common name by default through constructor
#
common_name=cmd_opts.server_name if cmd_opts.server_name else "localhost",
#alternative_names=["0.0.0.0", "::1", "127.0.0.1"],
alternative_names=None,
organization="AUTOMATIC1111 Web-UI",
country='TD',